Transaction Post API Example

Transaction Post API Example

Test account: amylove
Activation key: 123456789

The html code below shows a sample form button to the CCNow shopping cart. The fingerprint hash (x_fp_hash) was generated by passing the string

amylove^x_login^x_fp_arg_list^x_fp_sequence^x_amount^x_currency_code
^1111084438^55.50^USD^123456789


to an MD5 hash function.
<form method="POST" action="https://www.ccnow.com/cgi-local/transact.cgi">
<input type="hidden" name="x_login" value="amylove">
<input type="hidden" name="x_version" value="1.0">
<input type="hidden" name="x_fp_arg_list" 
  value="x_login^x_fp_arg_list^x_fp_sequence^x_amount^x_currency_code">
<input type="hidden" name="x_fp_sequence" value="1111084438">
<input type="hidden" name="x_currency_code" value="USD">
<input type="hidden" name="x_method" value="NONE">
<input type="hidden" name="x_name" value="John Smith">
<input type="hidden" name="x_address" value="123 Main St">
<input type="hidden" name="x_address2" value="Apt #1">
<input type="hidden" name="x_city" value="Los Angeles">
<input type="hidden" name="x_state" value="CA">
<input type="hidden" name="x_zip" value="90025">
<input type="hidden" name="x_country" value="US">
<input type="hidden" name="x_phone" value="310-123-1234">
<input type="hidden" name="x_email" value="jsmith@somewhere.com">
<input type="hidden" name="x_ship_to_name" value="">
<input type="hidden" name="x_ship_to_address" value="">
<input type="hidden" name="x_ship_to_address2" value="">
<input type="hidden" name="x_ship_to_city" value="">
<input type="hidden" name="x_ship_to_state" value="">
<input type="hidden" name="x_ship_to_zip" value="">
<input type="hidden" name="x_ship_to_country" value="">
<input type="hidden" name="x_ship_to_phone" value="">
<input type="hidden" name="x_shipping_amount" value="10.00">
<input type="hidden" name="x_shipping_label" value="Shipping and Handling">
<input type="hidden" name="x_shipping_method" value="Ground">
<input type="hidden" name="x_discount_amount" value="">
<input type="hidden" name="x_discount_label" value="">
<input type="hidden" name="x_invoice_num" value="AL-1111084432">
<input type="hidden" name="x_instructions" value="">
<input type="hidden" name="x_product_sku_1" value="CS-7112">
<input type="hidden" name="x_product_title_1" value="Beachy White T-Shirt">
<input type="hidden" name="x_product_quantity_1" value="1">
<input type="hidden" name="x_product_unitprice_1" value="13.50">
<input type="hidden" name="x_product_url_1" value="www.ccnow.com">
<input type="hidden" name="x_product_sku_2" value="BH-1130">
<input type="hidden" name="x_product_title_2" value="My Kind of Cap">
<input type="hidden" name="x_product_quantity_2" value="2">
<input type="hidden" name="x_product_unitprice_2" value="16.00">
<input type="hidden" name="x_product_url_2" value="www.ccnow.com">
<input type="hidden" name="x_amount" value="55.50">
<input type="hidden" name="x_fp_hash" 
   value="e44b8aeb153f23d3806fdab6221885e8">
<input type="submit" value=" Place Order ">
</form>