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

Commit

Permalink
Merge pull request #239 from mamhoff/respect-vault-config-in-cart
Browse files Browse the repository at this point in the history
Respect vault/checkout configuration on cart paypal button
  • Loading branch information
kennyadsl authored Nov 18, 2019
2 parents 5cb5f8e + 7768b54 commit 6561bba
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" %>',
locale: '<%= paypal_button_preference(:paypal_button_locale, store: current_store) %>',
Expand Down

0 comments on commit 6561bba

Please sign in to comment.