Stripe fixes

master
Mark Moffat 2019-11-03 17:41:37 +10:30
parent f033e89ca2
commit c97313d9cf
3 changed files with 9 additions and 7 deletions

View File

@ -296,6 +296,7 @@ $(document).ready(function (){
// open the stripe payment form
handler.open({
email: $('#stripeButton').data('email'),
name: $('#stripeButton').data('name'),
description: $('#stripeButton').data('description'),
zipCode: $('#stripeButton').data('zipCode'),

File diff suppressed because one or more lines are too long

View File

@ -6,14 +6,15 @@
value="Process payment"
class="btn btn-success waves-effect waves-light blue darken-3"
type="submit"
data-key="{{paymentConfig.publicKey}}"
data-amount="{{amountNoDecimal session.totalCartAmount}}"
data-name="{{config.cartTitle}}"
data-description="{{config.cartTitle}} Payment"
data-image="{{paymentConfig.stripeLogoURL}}"
data-key="{{@root.paymentConfig.publicKey}}"
data-amount="{{amountNoDecimal @root.session.totalCartAmount}}"
data-name="{{@root.config.cartTitle}}"
data-description="{{@root.config.cartTitle}} Payment"
data-image="{{@root.paymentConfig.stripeLogoURL}}"
data-email="{{@root.session.customer.email}}"
data-locale="auto"
data-zip-code="false"
data-currency="{{paymentConfig.stripeCurrency}}">
data-currency="{{@root.paymentConfig.stripeCurrency}}">
<i class="fa fa-cc-stripe fa-lg" aria-hidden="true"></i> Process payment <i class="fa fa-cc-stripe fa-lg" aria-hidden="true"></i>
</button>
<script src="https://checkout.stripe.com/v2/checkout.js"></script>