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 e6ec10e commit db900cf
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 @@ -5,7 +5,7 @@
<script>
var paypalOptions = {
buttonStyle: <%== SolidusPaypalBraintree::Gateway.first.preferred_paypal_button_style.to_json %>,
flow: 'vault',
flow: '<%= SolidusPaypalBraintree::Gateway.first.preferred_paypal_flow %>',
enableShippingAddress: true,
useDataCollector: <%= SolidusPaypalBraintree::Gateway.first.preferred_use_data_collector %>,
environment: '<%= Rails.env.production? ? "production" : "sandbox" %>'
Expand Down

0 comments on commit db900cf

Please sign in to comment.