Run in Apifox
API Header parameters, API Request parameters, API Response parameters (refer to Transaction-API [PAYMENT-API] public template parameters),follow is extra parameters
API Request parameters(extra)
Parameter Name Description Parameter Type Required Example paymentType Payment method; AIRTELTIGO, VODAFONE, MTN String optional MTN
Parameter Name Description AIRTELTIGO AIRTELTIGO VODAFONE VODAFONE MTN MTN
Request Body Params application/json
{
"amount" : "150" ,
"callbackUrl" : "https://webhook.site/41de4e56-1601-4252-a415-59e9711180f2" ,
"currency" : "GHS" ,
"email" : "test@test.com" ,
"firstname" : "your firstname" ,
"lastname" : "your lasttname" ,
"paymentType" : "MTN" ,
"mchOrderId" : "payind023111" ,
"phone" : "9324324352" ,
"productinfo" : "goods1" ,
"beneficiaryId" : "10375923"
} Request Code Samples
curl --location --globoff 'https://{{base_url3}}/gateway/base/biz' \
--header 'method: pay' \
--header 'signType: SHA512' \
--header 'serviceName: api.pay' \
--header 'mchId: 1416010331032883200' \
--header 'timestamp: 1631671670' \
--header 'sign: 32554324534545432543' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": "150",
"callbackUrl": "https://webhook.site/41de4e56-1601-4252-a415-59e9711180f2",
"currency": "GHS",
"email": "test@test.com",
"firstname": "your firstname",
"lastname": "your lasttname",
"paymentType":"MTN",
"mchOrderId": "payind023111",
"phone": "9324324352",
"productinfo": "goods1",
"beneficiaryId": "10375923"
}' Responses application/json
Generate Code
{
"resultCode" : "000000" ,
"errorCode" : "000000" ,
"errorMsg" : null ,
"data" : [
{
"orderId" : "202302031621412192101593088" ,
"checkoutUrl" : "http://localhost:8081/gateway/base/pay/adedebfa1287f741369540e2798dbbccbddb3fb917a54eb3ef173032961326f6a8d4d656f7fbea0115c5da04e99d63668c8db9f52edf915799922324a0259b01"
}
]
} Modified at 2026-09-16 09:21:02