Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use braintree's Hosted Fields #29

Merged
merged 3 commits into from
Apr 26, 2016

Conversation

jhawthorn
Copy link
Contributor

Fixes #27
Built ontop of #25

This allows stores to easily add this gem and only require easiest level of PCI compliance, SAQ A.

The downside is that this involves using weird <iframe>s inside of the checkout page, which are awkward to style. This offering also has worse formatting than that provided by jquery.payments, but Braintree promises something better Soon™ braintree/braintree-web#77. I believe this is worth those trade-offs.

<%= fields_for "#{param_prefix}[address_attributes]", @order.bill_address do |f| %>
<%= render :partial => 'spree/address/form_hidden', :locals => { :form => f } %>
<div class="braintree-payment">
<input type="text" class="braintree-input-style"></input>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This input is needed for what purpose ?

This was referenced Apr 26, 2016
@jhawthorn jhawthorn force-pushed the hosted_fields branch 3 times, most recently from d960e38 to 0f8fc16 Compare April 26, 2016 20:59
@jhawthorn jhawthorn merged commit ab3ea1c into solidusio:master Apr 26, 2016
@jhawthorn jhawthorn deleted the hosted_fields branch April 26, 2016 23:42
gsmendoza pushed a commit to gsmendoza/solidus_braintree that referenced this pull request Dec 28, 2022
…ogged-in

Only prompt for email for not logged in users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants