Skip to content

Instantly share code, notes, and snippets.

@davewardle
Created December 20, 2016 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davewardle/9e517a4571a93abc1a8e9e03548f4138 to your computer and use it in GitHub Desktop.
Save davewardle/9e517a4571a93abc1a8e9e03548f4138 to your computer and use it in GitHub Desktop.
Basic Stripe Checkout example
<form action="/your-server-side-code" method="POST">
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="pk_test_6pRNASCoBOKtIshFeQd4XMUh"
data-amount="2000"
data-name="Stripe.com"
data-description="2 widgets"
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