expressCart/views/partials/payments/stripe.hbs

25 lines
1.2 KiB
Handlebars
Raw Normal View History

2018-02-14 06:21:22 +10:00
<div class="col-xs-12 col s12 text-center">
2018-01-24 04:52:45 +10:00
<form method="POST" id="payment-form">
<button
type="submit"
id="stripeButton"
value="Process payment"
2018-02-14 06:21:22 +10:00
class="btn btn-success waves-effect waves-light blue darken-3"
2018-01-24 04:52:45 +10:00
type="submit"
2019-11-03 17:11:37 +10:00
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.customerEmail}}"
{{#if @root.session.cartSubscription}}
data-subscription="{{@root.session.cartSubscription}}"
{{/if}}
2018-01-24 04:52:45 +10:00
data-locale="auto"
data-zip-code="false"
2019-11-03 17:11:37 +10:00
data-currency="{{@root.paymentConfig.stripeCurrency}}">
<i class="fa fa-cc-stripe fa-lg" aria-hidden="true"></i> Pay Now <i class="fa fa-cc-stripe fa-lg" aria-hidden="true"></i>
2018-01-24 04:52:45 +10:00
</button>
<script src="https://checkout.stripe.com/v2/checkout.js"></script>
</form>
</div>