Ecommerce Checkout
1. Introduction
2. How it works
1.
2.
3.
4.
5.
3. Set up your payment selection UI
4. Integration Steps
Create a Payment Transaction
When the customer selects "Pay" and chooses a payment method, call the Create Transaction API to generate a transaction and display it on your platform.PayWay will respond with a HTML response that contains the checkout interface, which you must render on your website/platform for the customer to complete the payment.
Web
WAP/Mobile
Sample Response (Varies Based on Payment Method):
Handle Callback URL for payment status updates
Once the customer completes the payment, the details of the transaction and other important information will be sent via
This is an optional field. If left empty, it will default to the merchant profile’s
If you provide a value, ensure that your domain is whitelisted in your merchant profile.Your Sample Pushback Data
tran_id
Transaction ID sent during the initial payment process.
apv
Transaction approval code.
status
Payment status
return_params
Extra information sent to the payment gateway during the payment initiation request.
return_url
URL.This is an optional field. If left empty, it will default to the merchant profile’s
return_url
.If you provide a value, ensure that your domain is whitelisted in your merchant profile.
return_url
must accept HTTP POST
method and Content-Type as application/json
.💡
{
"tran_id": "17425401324",
"apv": "619195",
"status": "0",
"return_params": "xxxxxxxxxx"
}
string
Transaction ID sent during the initial payment process.
string
Transaction approval code.
string
Payment status
string
Extra information sent to the payment gateway during the payment initiation request.
Verify Payment Status
In addition to verifying the payment status via
callback URL
, you must also use the Check transaction API to verify payment status as PAID and ensure it was successfully processed.