Skip to content

Instantly share code, notes, and snippets.

@jdcauley
Created March 27, 2015 13:51
Show Gist options
  • Save jdcauley/14fd8228ecda05404708 to your computer and use it in GitHub Desktop.
Save jdcauley/14fd8228ecda05404708 to your computer and use it in GitHub Desktop.
Populate Amount in Script and Hidden Field and get JSON on submit
<form action="http://localhost:1337/charge/EJPtU76" method="POST">
<script
src="https://checkout.stripe.com/checkout.js"
class="stripe-button"
data-key="pk_test_bSb7tIiZYGyKMZVwsuD8S9AN"
data-image=""
data-name="No Reciept Again"
data-description=""
data-amount="">
</script>
<input type="hidden" name="amount" value="">
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment