Bank USSD
One-time use Bank USSD for payment
Generate a one-time USSD code for your customer’s bank. They dial it, approve with their bank PIN, and you’re paid instantly. No internet or card needed.
| Environment | Base URL |
|---|---|
| Sandbox | https://beta-collect.paga.com |
| Live | https://collect.paga.com |
Authenticate with HTTP Basic and a hash header, as in Authentication.
How it works
Get your customer’s bank
Ask which bank they use, and find its uuid with the Get Banks operation (POST /banks).
Create a payment request
With the bank in payer.bankId and paymentMethods set to ["FUNDING_USSD"]. Paga returns a one-time USSD code.
Your customer dials and approves
They dial the code on their phone and enter their bank PIN.
Paga notifies you
A callback reaches your callback URL as soon as the payment is approved. Verify it, then fulfil.
1. Create a payment request
POST /paymentRequest
Authorization: Basic base64(publicKey:secretKey)
hash: sha512(referenceNumber + amount + currency + payer.phoneNumber + payer.email + hashKey)
Content-Type: application/jsonSet paymentMethods to ["FUNDING_USSD"]. Use an empty string for payer.email in the hash if you don’t send it.
{
"referenceNumber": "ORD-2026-0188",
"amount": 200,
"currency": "NGN",
"payer": {
"name": "Bello Ramon",
"phoneNumber": "08064343187",
"bankId": "43F4DED6-78EC-4047-AD34-BAB75E679EB7"
},
"payee": { "name": "Your business name" },
"expiryDateTimeUTC": "2026-11-10T15:35:00",
"isSuppressMessages": true,
"payerCollectionFeeShare": 1,
"payeeCollectionFeeShare": 0,
"callBackUrl": "https://yourstore.com/webhooks/paga",
"paymentMethods": ["FUNDING_USSD"]
}All request parameters (14)
| Parameter | Required | Description |
|---|---|---|
referenceNumber | Yes | Your unique reference. Use it to match callbacks and check status. Hash value 1 |
amount | Yes | Amount to request, in naira. Hash value 2 |
currency | Yes | NGN. Hash value 3 |
payer.name | Yes | Customer’s name |
payer.phoneNumber | Yes | Customer’s phone number. Hash value 4 |
payer.email | No | Customer’s email address. Hash value 5 |
payer.bankId | Yes | Your customer’s bank, from Get Banks |
payee.name | Yes | Your business name |
payerCollectionFeeShare | Yes | Share of the fee your customer pays, from 0.0 to 1.0 |
payeeCollectionFeeShare | Yes | Share of the fee you pay. Both shares must add up to 1.0 |
expiryDateTimeUTC | No | When the request expires, in UTC, up to one week ahead |
isSuppressMessages | No | true stops Paga emailing or texting your customer. Default false |
callBackUrl | Yes | Where Paga sends the callback |
paymentMethods | Yes | ["FUNDING_USSD"] |
{
"referenceNumber": "ORD-2026-0188",
"statusCode": "0",
"statusMessage": "success",
"requestAmount": 200.0,
"totalPaymentAmount": 200.0,
"currency": "NGN",
"paymentMethods": [
{
"name": "FUNDING_USSD",
"properties": {
"USSDShortCode": "*894*000*724+40554208#",
"PaymentReference": "40554208"
}
}
],
"expiryDateTimeUTC": "2026-11-10T15:35:00",
"isPayerPagaAccountHolder": true
}Response fields (10)
| Field | What it’s for |
|---|---|
referenceNumber | Your reference from the request |
statusCode | 0 means the USSD code was created |
statusMessage | Readable status |
requestAmount | The amount you asked for |
totalPaymentAmount | The amount your customer pays, including any fee you pass on. Show this one |
currency | NGN |
paymentMethods[].properties.USSDShortCode | The code your customer dials |
paymentMethods[].properties.PaymentReference | Paga’s reference for the USSD payment |
expiryDateTimeUTC | When the code stops working, in UTC |
isPayerPagaAccountHolder | true if the payer’s phone number or email belongs to a Paga account |
2. Show your customer the USSD code
Display the code with the bank name and amount, and tell your customer to dial it from the phone number registered with that bank:
| Dial | *894*000*724+40554208# |
| Bank | First Bank |
| Amount | ₦200.00 |
| Expires | 10 Nov 2026, 4:35 pm (Lagos time) |
3. Handle the callback
Paga sends a PAYMENT_COMPLETE callback to your callback URL when the customer approves the payment. The callback, its fields and the hash check are the same as for Dynamic virtual accounts.
- Hash:
notificationId + statusCode + externalReferenceNumber + state + outstandingBalance + hashKey, with SHA-512. - Respond with HTTP 200. Paga retries up to three times with the same
notificationId. - If the code expires unused, you get a final callback so you can close the order.
4. Check payment status
Use the status endpoint to confirm a payment if a callback hasn’t arrived, or to double-check before you fulfil a large order.
POST /status
Authorization: Basic base64(publicKey:secretKey)
hash: sha512(referenceNumber + hashKey)
Content-Type: application/json{
"referenceNumber": "ORD-2026-0188"
}Request parameters (1)
| Parameter | Required | Description |
|---|---|---|
referenceNumber | Yes | The referenceNumber you used when you created the payment request. Hash value 1 |
{
"referenceNumber": "ORD-2026-0188",
"statusCode": "0",
"statusMessage": "success",
"data": {
"referenceNumber": "ORD-2026-0188",
"statusCode": "0",
"statusMessage": "success",
"requestAmount": 200.0,
"totalPaymentAmount": 200.0,
"expiryDateTimeUTC": "2026-11-10T15:35:00",
"additionalData": {}
}
}Response fields (10)
| Field | Meaning |
|---|---|
referenceNumber | The payment request you asked about |
statusCode | 0 means your status request worked. It doesn’t tell you whether the payment was made |
statusMessage | Readable status of your status request |
data.referenceNumber | The payment request you asked about |
data.statusCode | The payment’s own status. 0 means paid. See Collect API status codes for the others |
data.statusMessage | Readable status of the payment |
data.requestAmount | The amount you asked for |
data.totalPaymentAmount | The amount your customer pays, including any fee you pass on |
data.expiryDateTimeUTC | When the payment request expires, in UTC |
data.additionalData | Extra details for some payment methods. Often empty |
Read data.statusCode, not the outer statusCode. The outer statusCode only says whether your status request worked. Fulfil the order only when data.statusCode is 0.
Don’t poll on a timer. Wait for the callback, and only check status if it hasn’t arrived. If you do check, wait a few seconds and double the wait each time, as in Best practices.
Good to know
Every bank has its own code
Each bank uses its own USSD prefix, such as *737# or *901#. Always show the code from the response; never build one yourself.
Ask for the bank first
The code only works for the bank you set in payer.bankId. Let customers pick their bank before you create the request.
The registered phone matters
Customers must dial from the phone number linked to their bank account, or the bank won’t recognise them.
Codes expire
Set expiryDateTimeUTC to a short window, and create a new request if the customer comes back later.
Need help? We’re here 24/7
Talk to our support team any time, or ask questions in the developer community.
Updated 17 days ago

