Pay ZimSwitch/Visa/Mastercard 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": "ZimSwitch",
"amount": "120.50",
"paymentCurrency": "USD",
"paymentDescription": "School Fees FullPayment",
"payerName": "{{payerName}}",
"payerReference": "{{payerReference}}",
"payerAccountId": {{accountId}},
"profileId": {{profileId}}
}
Request samples
Responses
InititatePaymentZimSwitch(200)
InititatePaymentZimSwitch
HTTP Code: 200
Content Type : Rawtext/plain
ExampleInititatePaymentZimSwitch
{
"auth": {
"token": "eyJhbGciOiJIUzUxMiJ9.eyJVc2VySWQiOjMxLCJyb2xlcyI6WyJVU0VSIl0sInN1YiI6ImRldkBzbWF0cGF5LmFmcmljYSIsImlhdCI6MTcyODkzMzA2MCwiZXhwIjoxNzI4OTUxMDYwfQ.fvtGWvDANe0QQFKiToVYgyiycW5Y1ofPI6xfFHkdARo9iB6jndM3nn9ACiPrM4JIGWuGJJxyMMehL82traf5NQ",
"user": {
"id": 31,
"email": "dev@smatpay.africa",
"role": "USER",
"token": "eyJhbGciOiJIUzUxMiJ9.eyJVc2VySWQiOjMxLCJyb2xlcyI6WyJVU0VSIl0sInN1YiI6ImRldkBzbWF0cGF5LmFmcmljYSIsImlhdCI6MTcyODkzMzA2MCwiZXhwIjoxNzI4OTUxMDYwfQ.fvtGWvDANe0QQFKiToVYgyiycW5Y1ofPI6xfFHkdARo9iB6jndM3nn9ACiPrM4JIGWuGJJxyMMehL82traf5NQ"
},
"errorResponse": {
"errorMessage": null,
"statusCode": 0
}
},
"paymentInitiationResponse": {
"status": "Success",
"paymentTokenExpiry": null,
"paymentTokenDescription": "successfully created checkout",
"paymentToken": null,
"paymentId": "BFE1B4470D1981A5F29FC4DC292C2757.uat01-vm-tx03",
"paymentRedirectUrl": "https://dev-payments.smatpay.africa?paymentCode=BFE1B4470D1981A5F29FC4DC292C2757.uat01-vm-tx03",
"paymentResponseMessage": null,
"paymentProcessedDateTime": null,
"paymentCode": null,
"paymentQrCode": null
}
}
Last modified: a day ago