expressCart/views/partials/payments/stripe.hbs

25 lines
1.2 KiB
Handlebars
Raw Normal View History

<div class="col-sm-12 text-center">
2018-01-24 04:52:45 +10:00
<form method="POST" id="payment-form">
<button
type="submit"
id="stripeButton"
value="Process payment"
class="btn btn-outline-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}}">
2019-12-30 22:40:45 +10:00
<i class="fab fa-stripe fa-lg" aria-hidden="true"></i> Pay Now <i class="fab fa-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>