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

Respect vault/checkout configuration on cart paypal button #239

Merged
merged 1 commit into from
Nov 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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