Sha256: 463970c4f36f442ff79d3e01f5b6fad4b1f2beb3c6949482f5d72727938f0bc8
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
<% address = current_order.ship_address %> <button id="apple-pay-button" class="apple-pay-button"></button> <script> var applePayButtonElement = document.getElementById('apple-pay-button'); var applePayOptions = { paymentMethodId: <%= id %>, storeName: "<%= current_store.name %>", orderEmail: "<%= current_order.email %>", amount: "<%= current_order.total %>", shippingContact: { emailAddress: '<%= current_order.email %>', familyName: '<%= address.firstname %>', givenName: '<%= address.lastname %>', phoneNumber: '<%= address.phone %>', addressLines: ['<%= address.address1 %>','<%= address.address2 %>'], locality: '<%= address.city %>', administrativeArea: '<%= address.state.name %>', postalCode: '<%= address.zipcode %>', country: '<%= address.country.name %>', countryCode: '<%= address.country.iso %>' } }; var button = new SolidusPaypalBraintree.createApplePayButton(applePayButtonElement, applePayOptions); button.initialize(); </script>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_paypal_braintree-0.4.0 | app/views/spree/shared/_apple_pay_button.html.erb |