Dusupay
Search…
Payment Providers
Payment providers identify which provider or entity a transaction request is meant to be performed against.
When you request providers using the sandbox API, we will include the test account that can be used to test both successful or failure of transactions which ensures that your integration works as expected when you switch to the Live API.
1
//sandbox
2
GET: https://sandbox.dusupay.com/v1/payment-options/{transaction_type}/{method}/{country}?api_key={api_key}
Copied!
Headers
Request
Response
Sample Response (Sandbox)

Request Headers

Header
Value
Required
secret-key
Merchant account secret-key
YES
Content-Type
application/json
YES

URL Request Parameters

Parameter Name
Type
Description
Required
api_key
string
YES
transaction_type
string
Use any of the following;
  • COLLECTION
  • PAYOUT
YES
method
string
Use as described here
  • MOBILE_MONEY
  • CARD
  • BANK
  • CRYPTO
YES
country
string
ISO-2 country code e.g UG
Use available countries here
YES

Response body

Parameter
Type
Description
id
string
This is the provider_id. Use this wherever a provider_id is required. This should not be displayed to the customer
name
string
This is the name of the provider_id returned. This can be displayed to the customer.
transaction_currency
string
The currency in which this provider/payment option transacts
min_amount
number
The minimum allowed transaction amount
max_amount
number
The maximum allowed transaction amount
available
boolean
Whether or not the payment is available at the moment
1
// GET https://sandbox.dusupay.com/v1/payment-options/collection/mobile_money/ug?api_key={{api_key}}
2
3
{
4
"code": 200,
5
"status": "success",
6
"message": "Request completed successfully.",
7
"data": [
8
{
9
"id": "mtn_ug",
10
"name": "MTN Mobile Money",
11
"transaction_currency": "UGX",
12
"min_amount": 3000,
13
"max_amount": 5000000,
14
"available": true,
15
"sandbox_test_accounts": {
16
"success": "256777000123",
17
"failure": "256777000456"
18
}
19
},
20
{
21
"id": "airtel_ug",
22
"name": "Airtel Money",
23
"transaction_currency": "UGX",
24
"min_amount": 3000,
25
"max_amount": 5000000,
26
"available": true,
27
"sandbox_test_accounts": {
28
"success": "256752000123",
29
"failure": "256752000456"
30
}
31
}
32
]
33
}
Copied!
Last modified 2mo ago
Copy link