Hosted Payment Page Integration
Hosted payment page method is an operation to abstract the card details from merchant and provide more secure method, where customer enters sensitive card details on the page hosted by payment gateway or the acquiring gateway. In this method merchant cannot store card details on their system.
Protocol: https
Method: Post
Content-Type: application/json
Encryption Level: SSL Version 3.0
As an example – The following JSON message can be sent by merchant as one of the permitted service request by means of HTTPS Post method.
Test Environment URL : https://sandbox.solutionsaefinancial.com/merchantservices/transactions/payrequest
There are two legs of transaction in this integration :
1) Initiate the request to fetch the payment id and target URL
Sample JSON Request :
{
“terminalId”: “GamingT”,
“password”: “password”,
“action”: “1”,
“trackid”: “6530”,
“amount”: “1.00”,
“address”: “Mahape”,
“customerIp”: “10.10.10.10”,
“merchantIp”: “10.10.10.109”,
“city”: “navi mumbai”,
“zipCode”: “400710”,
“state”:”MH”,
“country”: “IN”,
“contactNumber”:”9892991205″,
“udf1″:”test5”,
“udf2″:”test5”,
“udf3″:”test5”,
“udf4″:”test5”,
“udf5″:”test5”,
“currency”:”BSD”,
“requestHash”:”4dad633c3b86883dd6c5d3bd4d5f1d45ecd10ba7a6cca5ba1976d8348b269b01″,
“customerEmail”:”team@solutionsae.com” ,
“cardHolderNamew”:”demo test”,
“transid”:”2119718201880591248″
}
Sample Response for first leg transaction :
{“result”:null,”responseCode”:”001″,”authcode”:null,”tranid”:null,”trackid”:null,”terminalid”:null,”udf1″:”test5″,”udf2″:”test5″,”udf3″:”test5″,”udf4″:”test5″,”udf5″:”purchase-voucher”,”rrn”:null,”eci”:null,”subscriptionId”:null,”trandate”:null,”tranType”:null,”integrationModule”:null,”integrationData”:null,”payid”:”2119718202136773619″,”targetUrl”:”https://sandbox.solutionsaefinancial.com/merchantservices/redirect/transactions/load.htm?“,”postData”:null,”intUrl”:null,”responseHash”:null,”amount”:null,”cardBrand”:null,”aRes”:null}
2) Merchant should do the form post to target URL with payment id where customer enters the card details and submit the request. Gateway will process the request further for authorization and once gateway will receive the response from bank will sent it to merchant receipt URL
Merchant has to do form post using below URL :
Redirect URL : https://sandbox.solutionsaefinancial.com/merchantservices/redirect/transactions/load.htm?transid=
Final Response for purchase voucher : https://sandbox.solutionsaefinancial.com/CORE_2.2.2/resultPage.jsp?PaymentId=2119718202136773619&TranId=2119718202136773619&AuthCode=012938&ECI=null&Result=Successful&TrackId=6530&ResponseCode=000&UserField1=test5&UserField2=test5&UserField3=test5&UserField4=test5&UserField5=purchase-voucher&RRN=09LXRJQLWZ80ZEYF6H6&amount=1.00&responseHash=5fb6fd34b9e178beb412b98a8dbfb1095569f486605dacc8035047877941dd1d&CardBrand=VISA&MaskedCard=411111XXXXXX1111&CardToken=&voucher_code=3009607937401&batch_number=&pin=07701
Final Response for load money : https://sandbox.solutionsaefinancial.com/CORE_2.2.2/resultPage.jsp?PaymentId=2109913939688333202&TranId=2109913939688333202&AuthCode=025142&ECI=null&Result=Successful&TrackId=101010&ResponseCode=000&UserField1=test5&UserField2=test5&UserField3=test5&UserField4=test5&UserField5=load-money-wallet&RRN=09LXJMUWAKD1QXG55D6&amount=1.00&responseHash=9c6a001a7fa3be7862c966d80ee37316c8d11619b99e62424fd4aedc68e9fa83&CardBrand=mastercard