Created
September 25, 2012 01:11
-
-
Save amasses/3779400 to your computer and use it in GitHub Desktop.
Direct Post (token purchase) example form
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="https://gateway.sandbox.fatzebra.com.au/v1.0/purchases/direct/TEST" id="direct-form" method="POST" novalidate="novalidate"> | |
<input id="reference" name="reference" type="hidden" value="INV-90386"> | |
<input id="currency" name="currency" type="hidden" value="AUD"> | |
<input id="verification" name="verification" type="hidden" value="a36d46f0ac1af213b304a95c5d0354ee"> | |
<input id="amount" name="amount" type="hidden" value="100000"> | |
<input id="return_path" name="return_path" type="hidden" value="http://yourwebsite.com/purchase/complete"> | |
<p>Your Credit Card (5123XXXXXXXX2346) will be charged the amount of $1000.00. Please enter your card security code to confirm.</p> | |
<input type="hidden" name="card_token" value="xj8lk08a"> | |
<div class="control-group"> | |
<label class="control-label" for="cvv">Security Code</label> | |
<div class="controls"> | |
<input class="required digits span1" id="cvv" maxlength="4" minlength="3" name="cvv" type="text"> | |
</div> | |
</div> | |
<div class="control-group"> | |
<div class="controls"> | |
<button class="btn btn-primary" type="submit"> | |
Go | |
</button> | |
</div> | |
</div> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment