Перейти до основного вмісту

Виплати через MTN

Для проведення виплат через MTN в Уганді запит до API Tranzzo повинен містити такі параметри:

ParameterTypeRequiredDescription
pos_idUUIDMerchant's identifier (POS_ID)
modeMODEdirect
methodMETHODPayment method (credit)
amountNumberTransaction amount. Must be a positive number. The number of decimal digits must be less than or equal to 2 (e.g., 100.00, 250, 50.50)
currencyCURRENCYUGX
order_3ds_bypassString3-D Secure flow option
order_idStringUnique identifier of order
descriptionStringPayment description
paywayStringmobile
server_urlURLWebhook notification will be sent to this URL
result_urlURLCustomer will be redirected to this URL after payment.
customer_fnameStringPayer’s first name
customer_lnameStringPayer’s last name
customer_phoneStringPayer’s phone number
customer_emailStringPayer’s email address
properties.instrument_typeStringmobile
properties.instrument_methodStringMOBILE_MTN

Приклад запиту:

{
"pos_id": "00000000-0000-0000-0000-000000000000",
"mode": "direct",
"amount": 400,
"method": "credit",
"currency": "UGX",
"payway": "mobile",
"customer_email": "[email protected]",
"customer_phone": "01012345678",
"customer_fname": "John",
"customer_lname": "Dou",
"properties":{
"instrument_type": "mobile",
"instrument_method":"MOBILE_MTN"
},
"order_3ds_bypass": "supported",
"description": "Description",
"order_id": "123456789",
"server_url": "http://callback-stub:9000/consume",
"result_url": "https://google.com"
}