AGI POST With One Time Token HTML

Modified on Mon, 28 Jul, 2014 at 12:17 PM

The example below will take a One Time Token for use with a Transaction, with POST Method

 

 

<html><form method='POST' action= "https://www.paymentsgateway.net/cgi-bin/posttest.pl" ><table cellSpacing='0' cellPadding='0' border='0'>
<tr><td align='right' width='300'></td><td align='left' width='200'><input type='hidden' name='pg_merchant_id' value='xxxxxx'/></td></tr>
<tr><td align='right' width='300'></td><td align='left' width='200'><input type='hidden' name='pg_password' value='QXwVI1wy433v'/></td></tr>
<tr><td align='right' width='300'></td><td align='left' width='200'><input type='hidden' name='pg_transaction_type' value='10'/></td></tr>
<tr><td align='right' width='300'></td><td align='left' width='200'><input type='hidden' name='pg_total_amount' value='10'/></td></tr>
<tr><td align='right' width='300'></td><td align='left' width='200'><input type='hidden' name='ecom_billto_postal_name_first' value='Tiger'/></td></tr>
<tr><td align='right' width='300'></td><td align='left' width='200'><input type='hidden' name='ecom_billto_postal_name_last' value='Woods'/></td></tr>
<tr><td align='right' width='300'></td><td align='left' width='200'><input type='hidden' name='pg_onetime_token' value='OTT_LWXHX6CXSYAPIVQ0RI0Z4W'/></td></tr>
<tr><td align='right' width='300'></td><td align='left' width='200'><INPUT TYPE=SUBMIT value='Pay Now'><br></td></tr></table></form></html>

 

 

Response

 

pg_response_type=A pg_response_code=A01 pg_response_description=TEST APPROVAL pg_authorization_code=123456 pg_trace_number=E6B092C2-7A72-4C40-B78F-A82824A67B3D pg_merchant_id=143482 pg_transaction_type=10 pg_total_amount=10.0 ecom_billto_postal_name_first=Tiger ecom_billto_postal_name_last=Woods pg_onetime_token=OTT_LWXHX6CXSYAPIVQ0RI0Z4W endofdata

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article