How does a Merchant Integrate with atom Online Payment Gateway?
- A merchant first needs to Sign Up with atom Online Payment Gateway-atom Paynetz.
- Once a customer wants to make a payment to the merchant, the merchant sends an EPI request to atom Paynetz.
- The EPI request facilitates a transfer of funds between the customer and merchant via Paynetz.
- The Paynetz platform validates the merchant and responds with an XML payload if successful.
- Based on the parameters in the XML, the merchant site has to send a new EPI request to Paynetz by parsing the XML response.
- The list of banks approved for the merchant will be displayed for selection on the Paynetz system, which is redirected to the customer.
- The customer then chooses the bank through which he/she wishes to do the payment.
- The EPI redirects the customer to the corresponding bank’s net banking interface. The customer can now complete the transaction.
PHP code for ATOM integration :
1.Create a form
MERCHANT->RESPONSE->url;
// eof code to generate token
// code to generate form action
$param = “”;
$param .= “&ttype=NBFundTransfer”;
$param .= “&tempTxnId=”.$xmlObj->MERCHANT->RESPONSE->param[1];
$param .= “&token=”.$xmlObj->MERCHANT->RESPONSE->param[2];
$param .= “&txnStage=1″;
$url = $url.”?”.$param;
// eof code to generate form action
?>