Bank USSD

One-time use Bank USSD for payment

USSD payments

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.

EnvironmentBase URL
Sandboxhttps://beta-collect.paga.com
Livehttps://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/json

Set 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)
ParameterRequiredDescription
referenceNumberYesYour unique reference. Use it to match callbacks and check status. Hash value 1
amountYesAmount to request, in naira. Hash value 2
currencyYesNGN. Hash value 3
payer.nameYesCustomer’s name
payer.phoneNumberYesCustomer’s phone number. Hash value 4
payer.emailNoCustomer’s email address. Hash value 5
payer.bankIdYesYour customer’s bank, from Get Banks
payee.nameYesYour business name
payerCollectionFeeShareYesShare of the fee your customer pays, from 0.0 to 1.0
payeeCollectionFeeShareYesShare of the fee you pay. Both shares must add up to 1.0
expiryDateTimeUTCNoWhen the request expires, in UTC, up to one week ahead
isSuppressMessagesNotrue stops Paga emailing or texting your customer. Default false
callBackUrlYesWhere Paga sends the callback
paymentMethodsYes["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)
FieldWhat it’s for
referenceNumberYour reference from the request
statusCode0 means the USSD code was created
statusMessageReadable status
requestAmountThe amount you asked for
totalPaymentAmountThe amount your customer pays, including any fee you pass on. Show this one
currencyNGN
paymentMethods[].properties.USSDShortCodeThe code your customer dials
paymentMethods[].properties.PaymentReferencePaga’s reference for the USSD payment
expiryDateTimeUTCWhen the code stops working, in UTC
isPayerPagaAccountHoldertrue 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#
BankFirst Bank
Amount₦200.00
Expires10 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)
ParameterRequiredDescription
referenceNumberYesThe 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)
FieldMeaning
referenceNumberThe payment request you asked about
statusCode0 means your status request worked. It doesn’t tell you whether the payment was made
statusMessageReadable status of your status request
data.referenceNumberThe payment request you asked about
data.statusCodeThe payment’s own status. 0 means paid. See Collect API status codes for the others
data.statusMessageReadable status of the payment
data.requestAmountThe amount you asked for
data.totalPaymentAmountThe amount your customer pays, including any fee you pass on
data.expiryDateTimeUTCWhen the payment request expires, in UTC
data.additionalDataExtra 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.


What’s Next