Skip to content

Instantly share code, notes, and snippets.

@dayhaysoos
Created April 22, 2021 21:59
Show Gist options
  • Save dayhaysoos/1bf1cb06b1db6e7e120a287b14340837 to your computer and use it in GitHub Desktop.
Save dayhaysoos/1bf1cb06b1db6e7e120a287b14340837 to your computer and use it in GitHub Desktop.
<form id="payment-form" action="/charge?itemId={{itemId}}" method="POST">
<label for="Name">Name</label>
<input type="name" class="form-control" id="name" name="name" placeholder="Nick DeJesus">
<label for="email">Email address</label>
<input type="email" class="form-control" id="email" name="email" placeholder="[email protected]">
<label for="address">Address</label>
<input type="address" class="form-control" id="address" name="address" placeholder="11 Main Street">
<label for="city">City</label>
<input type="city" class="form-control" id="city" name="city" placeholder="Boston">
<label for="state">State</label>
<input type="state" class="form-control" id="state" name="state" placeholder="MA">
<label for="zip">Zip</label>
<input type="zip" class="form-control" id="zip" name="zip" placeholder="02128">
<label for="country">United States</label>
<input type="country" class="form-control" id="country" name="country" placeholder="Boston">
<label for="card-element">Card Number</label>
<div class="form-control" id="card-element"></div>
<div class="mt-20">
<button type="submit" class="btn btn-lg btn-block btn-primary">Pay $<span class="amount"
data-amount="{{amount}}"></span></button>
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment