Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
Respect vault/checkout configuration on cart paypal button
Browse files Browse the repository at this point in the history
We have a configuration for the preferred payment flow, however it is
only recognised in the checkout paypal payment button, and not in the
cart paypal button. This commit adds that recognition.
  • Loading branch information
mamhoff committed Sep 28, 2019
1 parent 3e7bb80 commit 7768b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/spree/shared/_paypal_cart_button.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<script>
var paypalOptions = {
flow: 'vault',
flow: '<%= SolidusPaypalBraintree::Gateway.first.preferred_paypal_flow %>',
enableShippingAddress: true,
environment: '<%= Rails.env.production? ? "production" : "sandbox" %>'
}
Expand Down

0 comments on commit 7768b54

Please sign in to comment.