...
Create Order APIs
Create Order
API:- {{hppApiUrl}}/hpp/order
POST
Request JSON like
Code Block |
---|
{
"amount": 44.00,
"currency": "USD",
"midId" : {{midId}},
"clientOrderId": {{clientOrderId}},
"orderDesc": "Test",
"successUrl": "https://website.com/succss.html",
"cancelUrl": "https://website.com/cancle.html",
"failedUrl": "https://website.com/failed.html",
"customerDetails": {
"customerAddress": "Test",
"customerCity": "Test",
"customerCountryCode": "IN",
"customerEmail": "test@test.com",
"customerIp": "123.123.123.123",
"customerName": "Test",
"customerLastName": "Test",
"customerPhone": "+919900000000,
"customerState": "MH",
"customerZipCode": "123456"
}
} |
Note:- As a new 3DS Visa mandate, the customer needs to send an email and phone in the below format to avoid 3DS compliance issues.
Code Block |
---|
"customerEmail": "yogesh@dahe.com",
"customerPhone": "+919900000000", (Customer Phone in the format of coutrycode-phone . e.g +919900000000) |
After the Hosted payment page call, For any reason, if you are not able to get a valid response or transaction status from the gateway like below
Code Block |
---|
{
"traceID": "965c2c75-b29d-41fc-aa3a-6d40b9f3fbb0",
"responseTimestamp": "2024-04-25T13:48:49.959+00:00",
"transactionID": 22,
"responseCode": "GTW_1002",
"responseMessage": "Transaction status is Pending.",
"responseCodeType": "PENDING"
} |
you can call inquiry API For Transaction result status.
For detailed information on the request and response structure for the aforementioned APIs, please refer to our Swagger API documentation linked below.
...
Please refer to the document below for a list of API response codes and descriptions.