Created
November 27, 2016 02:00
-
-
Save andyfleming/1ced15716a11d14978ad4139253878b1 to your computer and use it in GitHub Desktop.
Stripe Checkout with Zesty.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="/-api/stripe/checkout" method="POST"> | |
<!-- Values for Zesty --> | |
<input type="hidden" name="amount" value="1199"><!-- should match data-amount below (in cents) --> | |
<input type="hidden" name="success_redirect" value="/thank-you/"> | |
<input type="hidden" name="failure_redirect" value="/payment-error/"> | |
<input type="hidden" name="charge_description" value="Purchase on example.com"> | |
<!-- Stripe Checkout button settings --> | |
<script src="https://checkout.stripe.com/checkout.js" class="stripe-button" | |
data-key="{{ setting.stripe.key }}" | |
data-amount="1199" | |
data-name="{{ clippings.site_name }}" | |
data-description="Purchase" | |
data-image="https://stripe.com/img/documentation/checkout/marketplace.png" | |
data-locale="auto" | |
data-zip-code="true"> | |
</script> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment