Skip to content

Instantly share code, notes, and snippets.

@amasses
Created September 25, 2012 01:08
Show Gist options
  • Save amasses/3779392 to your computer and use it in GitHub Desktop.
Save amasses/3779392 to your computer and use it in GitHub Desktop.
Direct Post (purchase) example form
<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">
<div class="control-group">
<label class="control-label" for="card_holder">Card Holder</label>
<div class="controls">
<input class="required" id="card_holder" minlength="2" name="card_holder" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="card_number">Card Number</label>
<div class="controls">
<input class="required numberish" id="card_number" minlength="13" name="card_number" type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="expiry_month">Expiry Date</label>
<div class="controls">
<input class="span1 required digits" id="expiry_month" name="expiry_month" placeholder="02" type="text">
/
<input class="span1 required digits" id="expiry_year" name="expiry_year" placeholder="2012" type="text">
</div>
</div>
<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