Pay Ecocash Sandbox
POST
/sandbox/init/authenticate/merchant/walletRequest
Header Params
Content-Type
string
required
Example:
application/json
Body Params application/json
object {0}
Example
{
"merchantId":"{{merchantId}}",
"merchantApiKey":"{{merchantApiKey}}",
"merchantKey":"{{merchantKey}}",
"walletName": "Ecocash",
"amount": "2.50",
"paymentCurrency": "USD",
"paymentDescription": "{{payerDescription}}",
"payerName": "{{payerName}}",
"payerReference": "{{payerReference}}",
"payerAccountId": {{accountId}},
"payerMobile": "{{263000000000}}",
"profileId":{{profileId}}
}
Request samples
Responses
InititatePaymentEcocash(200)
InititatePaymentEcocash
HTTP Code: 200
Content Type : Rawtext/plain
ExampleInititatePaymentEcocash
{
"auth": {
"token": "eyJhbGciOiJIUzUxMiJ9.eyJVc2VySWQiOjcsInJvbGVzIjpbIlVTRVIiXSwic3ViIjoidWRlYW5tYmFub0BnbWFpbC5jb20iLCJpYXQiOjE3MjAwOTQyOTYsImV4cCI6MTcyMDExMjI5Nn0.e7fZx1AfsMHzBa7cupP_ssbXV6-2Dx3JSLdeft0n8JtroYAFCzCbsLAx2mymK8-iBswCmKMX123HV8XBVatG7w",
"user": {
"id": 7,
"email": "udeanmbano@gmail.com",
"role": "USER",
"token": "eyJhbGciOiJIUzUxMiJ9.eyJVc2VySWQiOjcsInJvbGVzIjpbIlVTRVIiXSwic3ViIjoidWRlYW5tYmFub0BnbWFpbC5jb20iLCJpYXQiOjE3MjAwOTQyOTYsImV4cCI6MTcyMDExMjI5Nn0.e7fZx1AfsMHzBa7cupP_ssbXV6-2Dx3JSLdeft0n8JtroYAFCzCbsLAx2mymK8-iBswCmKMX123HV8XBVatG7w"
},
"errorResponse": {
"errorMessage": null,
"statusCode": 0
}
},
"paymentInitiationResponse": {
"status": "Processing",
"paymentTokenExpiry": "",
"paymentTokenDescription": "The payment is being processed enter pin on next prompt!",
"paymentToken": "",
"paymentId": "981af738-f459-4629-a72e-8388e0acdb5e",
"paymentRedirectUrl": ""
}
}
Last modified: 5 hours ago