Initiate Payment (JSON)
Creates a payment request in aamarPay using JSON.
POST
Body
Arguments
stringrequired
Unique merchant transaction id for the checkout session.
stringrequired
Redirect URL after a successful payment.
stringrequired
Redirect URL after a failed payment.
stringrequired
Redirect URL after a canceled payment.
stringrequired
Payment amount as a decimal string.
stringrequired
Transaction currency, for example BDT.
stringrequired
Merchant-facing description for the transaction.
stringrequired
Customer full name.
stringrequired
Customer email address.
stringrequired
Customer primary street address.
stringrequired
Customer city.
stringrequired
Customer country.
stringrequired
Customer phone number.
Field selectionChoose which fields should be included in the response. Learn more
string
Comma-separated response fields to include.