Generate Payment Token With Payment Sandbox
POST
/sandbox/api/requestPaymentTokenAndPayRequest
Body Params application/json
merchantId
string
required
paymentTokenReferenceRequest
string
required
walletName
string
required
amount
string
required
paymentCurrency
string
required
paymentDescription
string
required
payerName
string
required
payerReference
string
required
payerAccountId
integer
required
profileId
integer
required
Example
{
"merchantId": "71722326657622",
"paymentTokenReferenceRequest": "Payer0008",
"walletName": "ZimSwitch",
"amount": "120.50",
"paymentCurrency": "USD",
"paymentDescription": "School Fees FullPayment",
"payerName": "Keith Chimeto",
"payerReference": "1a1401fe-21cd-4111-a980-c0ecf6675951",
"payerAccountId": 9,
"profileId": 4
}
Request samples
Responses
GeneratePaymentToken(200)
GeneratePaymentToken
HTTP Code: 200
Content Type : Rawtext/plain
ExampleGeneratePaymentToken
{
"checkOutStatus": "Success",
"checkOutId": "FD5F75C50D264FF34D8BAB9797B3557C.uat01-vm-tx04",
"checkOutRedirectUrl": "https://staging-payments.smatpay.africa?paymentCode=FD5F75C50D264FF34D8BAB9797B3557C.uat01-vm-tx04",
"checkOutToken": ""
}
Modified at 4 days ago