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 // open the stripe payment form
handler.open({ handler.open({
email: $('#stripeButton').data('email'),
name: $('#stripeButton').data('name'), name: $('#stripeButton').data('name'),
description: $('#stripeButton').data('description'), description: $('#stripeButton').data('description'),
zipCode: $('#stripeButton').data('zipCode'), zipCode: $('#stripeButton').data('zipCode'),

File diff suppressed because one or more lines are too long

View File

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