Partners
Network → Partners is “the rails money actually moves over, per environment.”
One vendor is two rows
Section titled “One vendor is two rows”A partner exists per environment, and the same vendor is two rows. Credentials, health and routing are all set separately for test.
Collapsing them would hide that a partner is healthy on test and down on live — which is exactly the state that makes a payment fail in a way nobody can reproduce.
The list
Section titled “The list”| Filter | Values |
|---|---|
| Environment | Live only, Test only. |
| Status | Pending, Active, Suspended, Disabled, Terminated. |
| Column | Notes |
|---|---|
| Partner | Code and name. |
| Environment | — |
| Adapter | “Which Go adapter carries this partner’s traffic.” |
| Status | — |
| Health | “A routing rule pointing at a down partner is skipped.” |
| Rails | What it supports. |
| Credentials | None stored, Set, no expiry, a countdown, or Expired. |
| Health checked | When. |
| Health note | The current note. |
Health is offered from the row as well as from the partner page — because when a rail starts failing, every payment routed to it keeps failing until somebody takes it out of rotation, and that is not a moment to spend navigating.
The health control
Section titled “The health control”The most urgent control on the console.
| Field | Notes |
|---|---|
| It is currently / You are setting it to | Stated plainly before you confirm. |
| The note currently on it | — |
| What is this partner’s health? | The new state. |
| A note on the partner | “Replaces whatever note is on the partner now and shows in the fleet list. Leave blank to keep the existing one.” Up to 500 characters. |
| Why the health is changing | “Goes in BOTH the health event and the audit log… name the evidence rather than the conclusion.” |
The health history is how somebody later establishes when a rail went down and who decided it. Write the reason as evidence: “97% of payouts failing with timeout since 14:10”, not “it is broken”.
Adding a partner
Section titled “Adding a partner”| Field | Notes |
|---|---|
| Adapter | “This list is what the running build has; an adapter missing from it cannot be dispatched to, whatever else is configured.” |
| Environment | “A partner exists per environment.” |
| Code | “Unique per environment. Appears in routing and in every log line about this partner, so keep it short and stable.” |
| Display name | The vendor’s own name for the service. |
| Description | Optional. |
| Base URL | “Blank uses the adapter’s compiled-in default for this environment.” |
| Callback URL | “Where the vendor sends the customer back. Must match what is configured at their end.” |
| Webhook URL | Where the vendor posts async results. |
| Timeout (ms) | Default 30000, capped at 60000. “A vendor that hangs holds a goroutine and, inside a transaction, row locks.” |
| Max in flight | Default 20. “So one hanging partner cannot exhaust the worker pool.” |
| Rate limit (per second) | Only if the vendor publishes a ceiling. |
| Webhook grace (s) | Default 180, at least 1. How long after submission the status poller waits for the partner’s callback before it starts asking the partner itself. Lower it for a partner that sends no callbacks, or sends them unreliably, so its results arrive sooner. The payment page’s Check payment status and its own polling don’t wait for this. |
Adapters still to be confirmed
Section titled “Adapters still to be confirmed”Some adapters were written before anyone had seen a real request or response from
the vendor, or from documentation too thin to trust. They can be chosen in
Adapter, given credentials and settings, and tried in the sandbox, but a
capability on them cannot be switched on. Turning on Let routing send this
partner traffic on this rail is refused with 409 “The {adapter} adapter’s
wire contract is unconfirmed.” The refusal carries a numbered checklist of what
to confirm with the vendor. It is cleared by confirming each item and then changing
the code (removing the adapter’s MustConfirm list), not from the console.
| Adapter | Vendor | What it carries |
|---|---|---|
gtbank |
GTBank Ghana | Bank rails. Written with no GT Bank documentation at all, so every wire fact in it is an assumption. |
mtn_momo |
MTN Mobile Money (Ghana) | Mobile-money collections (Collection product), payouts and refunds (Disbursement product), name check and balance. |
ecobank |
Ecobank Ghana | Bank payouts, to Ecobank accounts and to other banks over GhIPSS; mobile-money payouts (off by default); cash-pickup payouts; bank collections by direct debit confirmed with a one-time code; bank account name check; pool balance. No refunds. |
saopay |
Sao Pay | Mobile-money collections (MTN, Telecel, AirtelTigo), card through a hosted 3-D Secure page, mobile-money and bank payouts, refunds, mobile-money name check, balance and signed webhooks. |
flutterwave |
Flutterwave (v3) | Ghana mobile-money collections (direct charge, with a code step), card through Flutterwave’s hosted checkout with saved cards, mobile-money and bank payouts, refunds, balance, name check, settlements over the API, and chargebacks. See Flutterwave. |
umb |
Universal Merchant Bank (Ghana) | Mobile-money collections, mobile-money and bank payouts, bank name check, mobile-money name check (optional), balance. GHS only. No refunds. Unsigned callbacks. See UMB for what still has to be confirmed with UMB. |
trendipay |
TrendiPay (Broad Spectrum) | Mobile-money collections, mobile-money and bank payouts, name check (mobile money and bank), balance and settlements over the API. GHS only. No refunds, cards or disputes. Unsigned callbacks. See TrendiPay. |
What each adapter needs
Section titled “What each adapter needs”Each adapter declares the credentials and settings it reads. Set credentials
and Edit settings lay their fields out from that list, and
GET /v1/adapters returns it as credentials[] and settings[]. Each entry has
key, label, help, required, needed_for and default.
- Required means every call needs it.
- Needed for names the one part of the integration that needs it, such as payouts or webhooks. Without it, that part fails with an error naming the key, and the rest works.
- Default is what the adapter uses when a setting is left blank.
The names below are the exact keys. A misspelt key is stored but never read.
MTN MoMo
Section titled “MTN MoMo”MTN sells Collection and Disbursement as separate products, each with its own keys. A partner can carry just one: a collection-only row needs no disbursement keys, and payouts, refunds and balance then fail with an error naming the missing key.
| Credentials | |
|---|---|
collection_subscription_key, collection_api_user, collection_api_key |
Collection. Use the primary subscription key. |
disbursement_subscription_key, disbursement_api_user, disbursement_api_key |
Disbursement. |
| Setting | |
|---|---|
target_environment |
mtnghana in live, where it is required. A test row defaults to sandbox. |
currency |
Sent to MTN. GHS in live, EUR in the sandbox. |
ledger_currency |
Sandbox only, default GHS. The MTN sandbox accepts only EUR, so a sandbox payment goes out labelled EUR and comes back booked as GHS, with the same number. Live refuses any currency mismatch. |
msisdn_country_code |
Prefix for a local number. Default 233. |
callback_host |
The callback host registered against each API user at MTN. Without it no callback address is sent. |
MTN’s callbacks are not signed, so each one is confirmed with a status call before it is acted on. MTN refuses Disbursement calls from any IP not on its allow-list: register every gateway’s outbound IP before enabling payouts or refunds.
When MTN has no record of a transaction, the status check reads it by age. For the first 30 minutes after we created it, it stays pending and is checked again. After that it is marked failed, meaning nothing was debited or sent. The same rule covers collections, payouts and refunds. A check prompted by a callback does not know the transaction’s age. In that case a collection fails, but a payout or refund is left in an unknown state for an operator to resolve. Failing it would return the merchant’s money, and a transfer that landed afterwards would then pay out twice.
Ecobank
Section titled “Ecobank”| Credentials | |
|---|---|
client_id, source_code, public_key |
Required. Issued by Ecobank. |
secret_key |
Required. The “lab key” that signs every request. Never sent. |
payment_subscription_key |
Required. Local Bank Payment. Needed by every rail, because every status check goes through it. |
account_subscription_key |
Account Enquiry: name check and balance. |
billpayment_subscription_key |
Bill Payment: mobile-money payouts. |
xpress_subscription_key |
Xpress Cash: cash-pickup payouts. |
directdebit_subscription_key |
Payment From Ecobank Account: direct-debit collections. |
account_number |
Our pool account, for the balance. |
Each key works only for its own Ecobank product. A rail whose key is missing fails with an error naming the key.
| Setting | |
|---|---|
ip_address |
Required. Our outbound IPv4 as registered with Ecobank; it goes into every request and signature. |
affiliate_code |
Default EGH (Ghana). |
own_bank_codes |
Comma-separated codes meaning “an Ecobank account”, default ECOBANK. A payout to one of these is a domestic transfer; anything else goes interbank. |
account_service_code |
Used for name check and balance. Default DOMESTIC. |
narration_prefix |
Put before the narration on a transfer. |
enable_momo_payout |
true turns mobile-money payouts on. Off by default. |
token_service_code |
Used for cash-pickup tokens. Default TOKEN. |
Base URL is required for a live Ecobank partner.
Payouts to a bank, a wallet or a cash token all come out of our Ecobank pool account.
| Rail | What to know |
|---|---|
| Mobile-money payout | Off until enable_momo_payout is true. Leave it off until a test transfer has succeeded on each network: none has in the sandbox yet. An unexplained Ecobank error is treated as “outcome unknown”, so the payout is checked rather than retried through another partner. The institution code for a network is Ecobank’s biller, as billerID:billerCode:productCode (for example 3214:VODAFONEGH:VODAFONE_CASH), or just the biller code, which is looked up on every payout. Numbers are sent in local 0XXXXXXXXX form. |
| Cash pickup | Channel cash; it needs no institution code. Ecobank issues an Xpress Cash token that the recipient collects at an Ecobank ATM, branch or agent. Ecobank is presumed to text the pickup code to the recipient, but that is unconfirmed. Waiting for pickup shows as pending; collected means succeeded; a cancelled token means failed, with the money back in the pool. Ecobank refuses some amounts as “Invalid Amount”, and the rules are not yet known. |
| Direct-debit collection | For a customer paying from an Ecobank account. The first payment from an account starts with enrolment: Ecobank emails the customer a code that is valid for 15 minutes and can be resent. Every payment is then confirmed with a code from the customer’s Ecobank Authenticator app, so a first-time payer is asked for two codes. A wrong code can be tried again. For the merchant’s side, see A charge with a one-time code. |
Ecobank’s callbacks are not signed. They are treated as hints and confirmed with a status check. Ecobank’s remittance product (cross-border only), bill payment, airtime and account opening are not integrated.
Sao Pay
Section titled “Sao Pay”| Credentials | |
|---|---|
secret_key |
Required. sk_test_… or sk_live_…, and it must match the partner’s environment: a live key on a test partner is refused before anything is sent. |
webhook_secret |
For webhooks. whsec_…, from registering the webhook at Sao. Sao signs every delivery (HMAC-SHA256 in X-Sao-Signature); an unsigned one is refused. |
No settings.
Universal Merchant Bank’s business APIs. Each UMB product is a separate
subscription with its own key, sent as Ocp-Apim-Subscription-Key. No key is
required on its own: a partner row needs only the keys for the products it
carries. A rail whose key is missing fails with an error naming the key.
| Credentials | |
|---|---|
collection_key |
Collections. The Wallet To Bank primary key. |
momo_payout_key |
Mobile-money payouts. The Bank To Wallet primary key. |
bank_payout_key |
Bank payouts and bank name checks. The Local Bank Transfer primary key. |
verification_key |
Optional. Mobile-money name checks. The Verification primary key, once UMB has activated that subscription. Without it, mobile-money name checks aren’t offered by this partner. |
Keys are under Profile on UMB’s developer portal (apidocs.myumbbank.com). Use the primary key.
| Setting | |
|---|---|
msisdn_country_code |
Prefix added to a local number. Default 233. UMB wants 233XXXXXXXXX. |
collection_paths |
Which Wallet To Bank endpoints to call: new (/collect/new, /status/new) or standard (/collect, /status). Default new on a test partner and standard on a live one. |
| Rail | What to know |
|---|---|
| Mobile-money collection | Wallet To Bank. The customer gets a USSD prompt to approve with their PIN. Institution codes are the network: mtn-gh, vodafone-gh or tigo-gh. Case doesn’t matter: the adapter lower-cases and trims network codes before sending, so a prefix override saved as MTN-GH is sent as mtn-gh. |
| Mobile-money payout | Bank To Wallet. Same network codes. If no recipient name is given, the number is sent as the name, as UMB allows. |
| Bank payout | Local Bank Transfer (GhIPSS). The institution code is UMB’s 6-digit bankReference from GET /bank-transfer/v1/banks, for example 300303 for Absa. UMB wants the name its own account enquiry returns, so if the payout carries no recipient name, an enquiry runs first. Each transfer carries a 12-digit session id and a 6-digit tracking number, both derived from the payment’s idempotency key. A retry sends the same pair, and a status check after a timeout still finds the transfer. The session id is stored as the partner’s transaction id and the tracking number as the partner reference. |
| Name check | Bank accounts through Local Bank Transfer’s account enquiry. Wallets through the Verification API, only when verification_key is set. |
| Balance | Our UMB account, read with whichever of the Bank To Wallet, Local Bank Transfer or Wallet To Bank keys is set (in that order). All three report the same account. |
| Refunds | Not supported: UMB has no reversal API. Refund the customer with a payout. |
Only GHS. UMB’s second collection product (“Mobile Money” requestpayment), Internal Transfer,
Virtual Account and Bill Payment aren’t integrated.
Callbacks are not signed. UMB documents no signature on any callback, so every
callback is treated as a hint and confirmed with a status call before anything
changes. UMB needs a callback URL on every request, so the gateway must have
GATEWAY_PUBLIC_URL set. Without it, every UMB payment is refused as a
configuration error before anything is sent.
A status answer must name our transaction. A finished status (paid or failed)
is accepted only if UMB’s answer echoes our reference: clientReference for
mobile money, or both the session id and tracking number for a bank transfer.
Anything else is read as unknown and checked again later. This matters in the
sandbox: UMB’s test keys return the documentation’s sample answer (for example
Paid for clientReference pay101) whatever you ask about, so test
transactions on UMB won’t settle until UMB provides a working test environment.
When UMB has no record of a transaction, it’s read by age, as for MTN. It stays pending for the first 30 minutes and is then marked failed. If the age isn’t known (a check prompted by a callback), a collection fails, but a payout is left unknown for an operator to resolve.
Only an explicit “no such reference” answer counts: code 4004, or for mobile
money a 4000 whose message says the clientReference was not found (Bank To
Wallet’s documented form). Other 4000 errors, such as “Customer not
onboarded” or “Recipient account not found”, never fail an old payout. For
bank transfers, only 4004 counts.
Error 4075 means our UMB float is empty. The payment fails as partner
unavailable, which is retryable, so routing can send it through another partner.
Top up the UMB account.
What is still to be confirmed with UMB. umb is an
unconfirmed adapter, so no rail on it can be
switched on yet. The checklist:
- Amount format. We send major units as an exact decimal (GHS 12.50 as
12.50). UMB’s documentation is contradictory: it types amounts as integers but describes them as “to two decimal places”. Getting this wrong moves 100 times the amount, or drops the pesewas. - Which keys are test and which are live (see the warning above).
- Onboarding. Wallet To Bank answers “Customer not onboarded” on the test key. UMB has to onboard the account (and may need the gateway’s outbound IPs). Then run one collection, one wallet payout and one bank payout end to end.
- Bank status codes. We read
000as credited. UMB’s table calls000“Transaction Accepted”. Confirm which code means the recipient’s bank has credited the account, and what a pending transfer returns. - Callback shapes. The bank-transfer callback body is undocumented, and there’s no signature. Ask whether UMB can sign callbacks or publish fixed source IPs.
- Which Wallet To Bank endpoints are right for live (
collection_paths). Only thenewpair answers on the test key. - Fees and e-levy. Answers carry
transactionFeeandelevy. Confirm who bears each, then set the partner’s fee rules to match. - Bank session ids. Must the session id be unique, for how long, and does it need a particular structure? Ours is derived from the payment, so two payments could in rare cases share one. A clash leaves that payout unknown for a person to resolve. It never pays twice.
- Name to credit. A bank payout sends the recipient name it was given, or the name from UMB’s account enquiry if none. Confirm whether UMB requires it to match the enquiry result exactly.
TrendiPay
Section titled “TrendiPay”TrendiPay’s v1 API, from Broad Spectrum. The adapter was built from TrendiPay’s
Postman collection, and no request has reached TrendiPay yet. It’s an
unconfirmed adapter, so no rail on it can be
switched on until the checklist below is cleared. Creating a TrendiPay partner
needs migration 000106_trendipay_adapter.
| Credentials | |
|---|---|
api_key |
Required. Generated on TrendiPay’s merchant portal. Sent as the Bearer token on every call. |
terminal_id |
Required. The API terminal’s external ID (a UUID), from Terminals on the merchant portal. Collections, payouts and name checks go through it. |
merchant_id |
Required. The merchant account’s external ID. Status checks, the transaction list and settlements are read under it. |
| Setting | |
|---|---|
collection_type |
TrendiPay’s collection type: purchase (goods or services, the default) or payment (bills, invoices, subscriptions). Anything else refuses the collection. |
| Rail | What to know |
|---|---|
| Mobile-money collection | The customer gets a prompt to approve with their PIN. The number is sent as 0XXXXXXXXX. If TrendiPay returns approval steps (for example “If payment prompt delays: Please dial *170#”), they’re added to the message shown to the customer, but only if every step is short plain text with no long run of digits. Otherwise the message is just “Approve the payment prompt on your phone.” There’s no code step, so a Collect prompt carried by TrendiPay never texts the payer a link. |
| Mobile-money payout | A disbursement of type deposit, sent as from PaySigna. TrendiPay needs the recipient’s name. If the payout carries none, the name comes from TrendiPay’s own name check first. If TrendiPay doesn’t know the account, the payout fails as an invalid recipient and nothing is sent. If the check can’t reach TrendiPay, routing can try another partner. |
| Bank payout | The same disbursement, with the bank’s code instead of a network. A missing name is filled from the name check in the same way. |
| Name check | Mobile money and bank, through the terminal’s account-details lookup. When TrendiPay refuses the lookup (400 or 422), the answer is “That account was not found on the network chosen, or the network or bank code is not one TrendiPay accepts.” So check this partner’s codes before telling the merchant the number is wrong. |
| Balance | Our TrendiPay balance. The available balance is used, since that’s what a payout can draw on. |
| Settlements | Fetched over the API, one statement per day. See Reconciliation. |
| Refunds | Not supported: TrendiPay has no reversal API. Refund the customer with a payout. |
Card and bank collections, and disputes, aren’t available at TrendiPay. Only GHS.
Channel codes are TrendiPay’s rSwitch values. Enter one per network and
bank as this partner’s institution codes: mtn, telecel,
airteltigo or at money for mobile money, and the bank’s shortCode for a
bank. A payment with no code for its network or bank is refused as a
configuration error. TrendiPay’s own bank list names MTN mtngh while its
examples use mtn, so which one a live terminal accepts is on the checklist. The
adapter can read that list (GET /v1/banks), but the console has no button for
it yet.
Fees. On a payout, the fee recorded is what TrendiPay debited us beyond the
amount sent (amountDebited − amount). No fee is recorded on a collection
until the checklist’s first item is answered.
Identifiers. Our reference is sent as TrendiPay’s reference. TrendiPay’s
rrn is stored as the partner’s transaction id, and its externalId as the
partner reference. If a create times out before we see the rrn, the
transaction is found again by our reference. It’s never sent twice.
Callbacks are not signed. TrendiPay sends its callbacks as PUT to the
partner’s callback address, with no signature. So each one only triggers a
status check: nothing in its body is acted on. TrendiPay needs a callback
address on every request, so without GATEWAY_PUBLIC_URL on the gateway every
TrendiPay collection and payout is refused as a configuration error before
anything is sent.
Reading a status. An answer is acted on only if it names our reference and
the right direction, and if its status word and code agree (for example
success with 000). Anything else is read as unknown and checked again later.
When TrendiPay has no record of a transaction, it’s read by age, as for MTN:
pending for the first 30 minutes, then failed. If the age isn’t known, a
collection fails, but a payout is left unknown for an operator to resolve.
What is still to be confirmed with TrendiPay. The checklist:
- What the customer is debited. TrendiPay’s collection example answers an amount of 100 with 175 debited. Confirm whether TrendiPay charges the customer its fee on top or credits us less. If the customer pays more than our quote, set this partner’s fee rules and fee bearer to match before going live.
- The sandbox address, and that the test API key can’t move live money.
- Repeated references. We read any answer mentioning a duplicate as “this transaction already exists” and check its status. We never resend. Confirm what TrendiPay answers, and that a repeated reference never makes a second prompt or payout.
- The payout type. The guide says
deposit; the saved example sends none and answersdisbursement. Send a one-pesewa sandbox payout to a wallet and to a bank account. - The
rSwitchcodes a live terminal accepts for collections, payouts and name checks (mtnormtngh, and the rest). - Callback signing. Ask whether TrendiPay can sign callbacks or publish fixed source IPs.
- Status words and codes for a reversed or refunded transaction, and how
long a pending collection waits before timing out (code
414). - Error answers for an invalid number, an unknown
rSwitch, a bad terminal and too little balance, so declines are classified rather than generic. In particular, confirm that a wrongrSwitchor terminal gets a different answer from a wrong account number on the name check. Today both read as “not found”. - The partner’s transaction lookup. Confirm a new transaction shows up there within seconds, and that an empty answer means TrendiPay never received it. After 30 minutes we fail a collection on that answer.
Flutterwave
Section titled “Flutterwave”| Credentials | |
|---|---|
secret_key |
Required. Flutterwave dashboard → Settings → API keys. FLWSECK_TEST-… on a test partner, FLWSECK-… on a live one. The prefix is checked against the row’s environment, because one host serves both and the key alone decides whether real money moves. |
webhook_secret_hash |
For webhooks. The dashboard’s webhook Secret hash: choose a long random value and enter the same one here. |
| Setting | |
|---|---|
momo_collection |
direct (the default) charges the customer’s phone; checkout sends mobile money to Flutterwave’s hosted page. |
fallback_customer_email |
Last resort only, used if the gateway sends no email. |
debit_currency |
The Flutterwave wallet payouts are paid from. Defaults to the payout’s currency; without it, Flutterwave would debit the account’s default wallet. |
checkout_session_minutes |
Optional, 1 to 1440. How long a hosted checkout stays payable. |
checkout_title |
Optional. The title on Flutterwave’s hosted page. |
country |
ISO-2 country sent with name checks, for example GH. |
Channel codes. Collection: MTN, VODAFONE, and TIGO or AIRTEL for
AirtelTigo (Flutterwave’s sources disagree, so set whichever the sandbox
accepts). Payout wallets: MTN, VODAFONE, TELECEL or AIRTELTIGO. Banks: the
code from GET /v3/banks/GH, with the branch as the payout’s branch code
(Ghana bank transfers fail after queueing without it).
Mobile money charges the phone directly:
POST /v3/charges?type=mobile_money_ghana. Flutterwave’s answer:
| Flutterwave answers | What happens |
|---|---|
redirect |
The customer continues on Flutterwave’s page (hosted_checkout), then approves the prompt on their phone. |
otp |
Our code step: action.type otp, “Enter the code sent to your phone to approve this payment.” The code goes to /v3/validate-charge. It can’t be resent: Flutterwave has no resend. |
callback, pending |
Pending: the customer approves a prompt. |
pin, avs_noauth |
Stopped, nothing taken: “The payment partner asked for an extra security check (card PIN) that this payment cannot collect…” (or billing address). |
successful |
Processing, until verify or the webhook confirms it. |
failed |
Failed. |
cancelled |
Still payable: the customer closed Flutterwave’s page and can retry until the session expires. |
| Anything else | Pending, and the status check decides. Never read as a failure. |
Cards and other channels use Flutterwave Standard’s hosted checkout
(/v3/payments). Saved cards are charged with /v3/tokenized-charges, with the
token captured from verify or charge.completed.
Payouts are Flutterwave transfers (POST /v3/transfers), under the
lowercase psg- reference. An immediate success is held at processing until
the webhook or a status check confirms it. A “duplicate reference” refusal is
indeterminate, not a failure: a transfer may already exist, so it’s polled,
never resent. Statuses NEW, PENDING, SUCCESSFUL, FAILED.
Refunds: /v3/transactions/:id/refund, then read from /v3/refunds/:id.
Balance: /v3/balances/:currency, so the float check and the low-float
alert cover it. Name check: /v3/accounts/resolve. Whether it works for
Ghana is unconfirmed.
Webhooks are authenticated by the secret hash in verif-hash, compared in
constant time, and a wrong or missing hash is refused. That hash is a static
secret, not a signature of the body. So a payment event authenticated by the
hash alone is only a trigger: we re-check it with Flutterwave before acting.
chargeback.initiated opens a dispute only once it’s confirmed: we read the
case back from Flutterwave (GET /v3/chargebacks?id=, within 15 seconds) and open
it only if Flutterwave holds it, with Flutterwave’s own due date. So a delivery
with the right hash but an unknown case is refused. If Flutterwave doesn’t answer,
nothing is opened and the delivery is stored unprocessed for a person to look at
under Callbacks. Flutterwave only sends chargeback.initiated once you’ve
asked them by email to enable it.
Settlements can be imported over the API, as source
flutterwave.settlement.api.unverified (see
Importing from a partner).
Disputes can be answered from the console (see
Answering at the partner).
Not available: resending a charge code, a transfer approval URL, and channel codes read from the partner.
GTBank
Section titled “GTBank”| Credentials | |
|---|---|
subscription_key |
Required. The API-gateway key GT Bank issues per consumer, sent on every request. |
signing_key |
Required. The HMAC key for the per-request signature. |
account_number |
For collections and payouts. Our GT Bank corporate account: credited by collections, debited by payouts. |
webhook_secret |
For webhooks. The HMAC key for callbacks; without it, unsigned callbacks are refused. |
| Setting | |
|---|---|
own_bank_code |
GT Bank’s own GhIPSS code, used for a transfer to another GT Bank account that has no channel code. |
narration_prefix |
Put before the statement narration, so credits can be matched in reconciliation. |
Hubtel
Section titled “Hubtel”| Credentials | |
|---|---|
client_id |
Required. Hubtel’s API ID, from the dashboard under API keys. The HTTP Basic username. |
client_secret |
Required. Hubtel’s API Key, shown beside the API ID. The HTTP Basic password. |
account_number |
Required. The POS Sales / Merchant Account ID, starting HM00. Collections and payouts are made against it. |
webhook_secret |
Optional, for webhooks. Only if Hubtel has issued a callback signing secret. |
| Setting | |
|---|---|
payout_default_channel |
The channel used when a payout carries no network code, for example mtn-gh. |
When Hubtel has no record of a transaction (a 404 on the status check), it’s read
by age, as for MTN. It stays pending for the first 30 minutes and is then
marked failed. If the age isn’t known (a check prompted by a callback), a
collection fails, but a payout is left unknown for an operator to resolve.
Before, a 404 failed the payment at once, so an early or forged callback could
fail a payout that was still in flight and let it be sent twice.
Paystack
Section titled “Paystack”| Credentials | |
|---|---|
secret_key |
Required. sk_test_… or sk_live_…. It is the Bearer token and also the webhook signing key. |
webhook_secret |
Optional. Defaults to secret_key, since Paystack has no separate signing secret today. |
| Setting | |
|---|---|
transfer_source |
The Paystack balance payouts are debited from. Default balance. |
fallback_customer_email |
Optional, and a last resort. Sent only when the gateway sent no email, which in practice doesn’t happen. After it comes [email protected]. |
momo_collection |
Default direct: mobile money is charged straight to the customer’s phone. checkout sends mobile money to Paystack’s hosted page, as before. |
Mobile money charges the phone directly. We call POST /charge with
mobile_money{phone, provider}. The provider is the partner’s mobile-money
collection channel code, lowercased: mtn, vod (Telecel) or atl
(AirtelTigo). Ghanaian numbers are sent as 0XXXXXXXXX. Paystack’s answer:
| Paystack status | What happens |
|---|---|
pay_offline, pending, ongoing |
Pending: the customer approves a prompt on their phone. For pay_offline, Paystack’s display_text is shown to the customer. |
send_otp |
The pay page asks for a code, showing Paystack’s display_text. Without one it says “Enter the code you were sent to approve this payment.”, and for Telecel “Dial *110# on your Telecel phone, choose Generate Voucher, then enter the code here.” The code goes to POST /charge/submit_otp, and a wrong code lets the customer try again. A Collect prompt is finished at pay.paysigna.com/code. |
open_url |
The customer is sent to the address Paystack gives. |
success |
Succeeded. |
failed, timeout |
Failed, with Paystack’s reason. timeout is final: Paystack says to start a new charge. |
send_phone, send_birthday |
One more check, collected like a code. The charge waits with action.type otp and action.input phone or birthday. The pay page shows a phone field or a date field, with Paystack’s display_text (without one: “Enter the phone number linked to this payment.” or “Enter your date of birth to approve this payment.”). The value goes to POST /charge/submit_phone or POST /charge/submit_birthday. It shares the code’s five-attempt limit. A later status check that still says send_phone or send_birthday means the payer hasn’t typed it yet. |
send_pin, send_address |
Stopped, in the first answer or a later status check, failed with code paystack_send_pin or paystack_send_address: “The payment partner asked for an extra security check (pin) that this payment cannot collect, so it was stopped and nothing was taken. Try again, or use a payment link.” PaySigna doesn’t collect a card PIN (that would put us in card-security scope) or a billing address, and Paystack takes no money without them. |
| Anything else | Pending, and the status check decides. Never read as a failure. |
Mobile money still goes through the hosted checkout when the collection has no
customer number or no network code. Card, bank and USSD always use the hosted
checkout. A status check reads send_otp, send_phone, send_birthday, pay_offline and
open_url as waiting for the customer, and stops send_pin and send_address
as above. For a direct charge still in flight, the status check also asks
GET /charge/:reference (“Check pending charge”). That answer is used only to
stop sooner (failed, timeout, PIN or address). Success still comes only from
/transaction/verify or the charge.success webhook.
On the pay page, Paystack’s card checkout opens in a window over our page
(Paystack Inline), not as a full redirect. The gateway still initialises the
transaction and returns Paystack’s authorization_url as the hosted_checkout
action. The page takes the access code from that URL, and only from an
https://checkout.paystack.com/… address. It then resumes that transaction
with js.paystack.co/v2/inline.js.
- The browser sets nothing of its own. No key, amount or email is sent from the browser.
- Nothing on our page takes the card. It’s typed in Paystack’s iframe, and Paystack runs PIN, OTP and 3-D Secure there too.
- The window’s callbacks only change what the page shows. Whether it was paid still comes from the status check, as after a redirect.
- If Paystack’s script doesn’t load within 10 seconds, the page falls back to the full redirect.
Other partners’ card pages are unchanged.
“Abandoned” means still waiting. Paystack reports every unpaid checkout as
abandoned, even while the customer is approving a mobile-money prompt on the
page. So we read it as waiting for the customer, not as a failure. The
collection’s own expiry closes an unpaid one, and the
late-outcome check settles a customer
who pays after that.
Payouts are Paystack transfers. Paystack takes the amount and its fee
from the Paystack balance when the transfer is created. A transfer’s reference on
Paystack is psg- and the payout’s id as 32 lowercase hex characters (36 in
all), because Paystack wants transfer references in lowercase. Collections keep
the shorter mixed-case psg… reference, which Paystack accepts on charges. We
read both forms back, so webhooks, status checks and the approval URL match
either. Its transfer statuses
don’t mean what the same words mean on a collection:
| Paystack transfer status | Ours |
|---|---|
pending, received |
In flight. received means it’s waiting on a transfer approval URL. |
otp |
Waiting on staff: Paystack has sent a code to the Paystack account’s owner. The payout is awaiting_action and a payout_held_by_partner money exception is raised so staff can enter the code. |
success |
Processing when it’s Paystack’s immediate answer to POST /transfer, then succeeded once a status check or webhook confirms it. The credit can still come back as reversed. |
reversed |
Paystack couldn’t credit it and returned the amount. On a payout already succeeded, this is not applied automatically: the webhook or status check raises a money exception for staff, and the merchant’s balance stays debited until someone acts. |
failed |
Failed, nothing sent. |
abandoned |
Failed, nothing sent: “Paystack held this transfer for an OTP on the Paystack account and nobody entered it within 30 minutes, so it was not sent. Turn off “Confirm transfers before sending” (transfer OTP) on the Paystack dashboard.“ |
blocked |
Failed, nothing sent: our approval URL didn’t answer in time. |
rejected |
Failed, nothing sent: our approval URL refused it. |
Until this was fixed, abandoned on a transfer was read as still waiting, so such
a payout sat in flight for ever with the merchant’s money held against it.
The transfer approval URL
Section titled “The transfer approval URL”Before Paystack sends a transfer, it asks our gateway at
POST /webhooks/partners/{code}/transfer-approval. We answer 200 (send it)
only if every transfer in the request:
- has a reference that is one of our payouts (the
psg-…reference we sent); - is in this environment, and is a payout;
- is still in flight (
initiated,pending,processingorawaiting_action); - was dispatched to this partner;
- is for exactly the amount and currency we asked for. The amount is recorded
before the call to Paystack, so the check works even while our
POST /transferis still waiting for its answer; - goes to the payout’s recipient account, where Paystack names one.
Anything else gets 400, and Paystack doesn’t send it. A bulk request is all or
nothing: one transfer we don’t recognise refuses the lot. The body says nothing
about why. The reason is in the gateway log, as an error starting “transfer
approval REFUSED”. Treat one as a possible compromise of the Paystack secret
key: someone may be starting transfers that PaySigna didn’t. When Paystack
sends an x-paystack-signature header, it’s checked too, and a bad one is
refused.
Our answer takes a few reads and comes back within a few seconds. The route has
its own rate limit, separate from partner callbacks (3,000 a minute per partner),
so a burst of callbacks can’t crowd out approvals, nor approvals the callbacks. If Paystack
gets no answer in time, it marks the transfer blocked and the payout fails with
nothing sent.
This is stronger than the OTP it replaces. A transfer started by anyone else holding our key has no payout behind it, so it’s refused, and no person has to type a code for each payout.
Releasing a payout Paystack holds for a code
Section titled “Releasing a payout Paystack holds for a code”If transfer OTP is turned back on, Paystack answers each payout with otp and
sends a code to the Paystack account’s owner. Within about 15 seconds, the
gateway raises a money exception of kind payout_held_by_partner, and staff
get the usual exception alert email. Under Transactions → Exceptions, the
row has:
- an Approval code field and an Approve payout button;
- Resend code, which asks Paystack to send the code again;
- a countdown to 30 minutes after the payout was created. After that the pill reads “30 minutes passed: likely abandoned”.
Releasing needs the transaction.retry permission, and one person can do it
alone (the 30-minute clock leaves no time for a co-signer). The code is
queued, and the gateway worker sends it to Paystack’s
/transfer/finalize_transfer (or /transfer/resend_otp) and then refreshes
the payout through the status check. One request runs at a time per payout.
The outcome shows on the row in words. A finalize is never retried
automatically: if Paystack’s answer is lost, the outcome reads “Unknown; the
status check will tell.” The code is never logged, returned or kept in the
audit log, and it’s cleared once used. The exception closes itself once the
payout leaves awaiting_action, however it left.
The provider API: POST /v1/transactions/{id}/partner-otp with {"otp": "…"}
(4 to 12 letters or digits), POST /v1/transactions/{id}/partner-otp/resend,
and GET /v1/transactions/{id}/partner-otp/latest (queued, then done or
failed, with outcome).
Balance and refunds
Section titled “Balance and refunds”Paystack reports its balance. check-partner-float reads it with
GET /balance, in the float’s currency, so a Paystack float can be watched like
any other (Float).
Refunds are checked as refunds. A refund’s status is read from Paystack’s
GET /refund/:id, by the refund id Paystack returned. It is not a transfer, so it
is never looked up as one.
| Paystack refund status | Ours |
|---|---|
processed |
succeeded |
pending, processing |
processing |
needs-attention |
awaiting action (often a mobile-money refund waiting on account details) |
failed |
failed |
Only Paystack’s own failed fails a refund. If we hold no Paystack refund id
(the refund call went unanswered) or Paystack says it has no such refund, the
refund stays in flight for a person to find on the Paystack dashboard, under
the original payment. It is never failed automatically, because failing it would
hand the merchant the money back while Paystack may still be refunding the
customer.
Paystack’s refund.* webhooks are only a trigger. They are matched by the refund
id, and the status check above settles the refund. They no longer land on the
original payment as a reversal needing manual handling.
When Paystack has no record of a transaction (a 404 on the status check), it’s read
by age, as for MTN. It stays pending for the first 30 minutes and is then
marked failed. If the age isn’t known (a check prompted by a callback), a
collection fails, but a payout is left unknown for an operator to resolve.
Before, a 404 failed the payment at once, so an early or forged callback could
fail a payout that was still in flight and let it be sent twice.
PaySwitch
Section titled “PaySwitch”| Credentials | |
|---|---|
merchant_id |
Required. Sent in the Merchant-Id header and in every request body. |
api_user |
Required. The Basic auth username PaySwitch issued. |
api_key |
Required. The Basic auth password PaySwitch issued. |
pass_code |
For payouts. The payout secret, separate from the API key. |
webhook_secret |
Optional and usually absent. Callbacks are confirmed by a status check either way. |
| Setting | |
|---|---|
momo_collection_api |
Default async: mobile-money collections go to AP V2, which answers at once and posts the result to our callback. process uses the older v1.1 call, which waits while the customer approves. |
async_base_url |
AP V2’s host. Defaults to https://prod2.theteller.net in live. PaySwitch publishes no AP V2 test host, so a test partner uses AP V2 only when this is set; otherwise it uses the process call. |
checkout_base_url |
The hosted-checkout host. Required on a test partner, because PaySwitch publishes no sandbox host. |
direct_card_entry |
Default off. on takes card details on our own pay page and posts them to PaySwitch’s process API, instead of sending the cardholder to its hosted checkout. Only with a current PCI DSS Attestation of Compliance and PaySwitch’s approval of this merchant_id for the process API. The gateway’s CARD_DIRECT_ENTRY must be on too. See below. |
payout_default_channel |
The r-switch (account issuer) used when a payout carries no channel code. |
bank_processing_code |
The processing code for a bank payout’s first call, the name enquiry. Default 404020. See below. |
status_path_template |
Overrides the status endpoint path; {id} is replaced with the transaction id. |
status_auth_uses_merchant_id |
true authenticates status checks as merchant_id:api_key. Default false. |
payout_auth_uses_merchant_id |
true authenticates payouts as merchant_id:api_key. Default false. |
AirtelTigo on PaySwitch. PaySwitch’s AP V2 document lists r-switch ATL as
AirtelTigo Money, so map the AirtelTigo network’s code to ATL. Add
codes by number prefix (027 and 057 → TGO, for
example) only if PaySwitch refuses former-Tigo numbers under ATL.
Mobile-money collections use AP V2 by default. We post to
{async_base_url}/process/transaction/async with merchant_id, r-switch, amount
as a decimal string ("12.50"), processing_code 000200, transaction_id (our
12 digits), callback_url (our /webhooks/partners/{code}), desc, reference,
subscriber_number and merchant_data. A request-id header goes with it: 12 to
19 digits, unique per request (the transaction id plus a time suffix).
Its 000 answer means request received, not paid. The transaction stays
pending until the result arrives on the callback, which is unsigned and so
triggers a status read, or through the status poller. The older process call
held the request open while the customer approved, so a slow approval outlasted our
request timeout. AP V2 doesn’t. If the gateway has no public webhook address, the
adapter falls back to the process call. Payouts, card checkout and status reads
are unchanged.
A status read that can’t find the payment isn’t a decline. Right after the
prompt reaches the customer’s phone, PaySwitch’s status lookup can answer before
it can see the transaction. Codes 600, 909, 979 and 999, or a reason
saying the transaction was not found (“not found”, “no record”, “does not
exist”, “unknown transaction”, “no transaction”), describe our lookup, not
the customer’s money. Such an answer is never read as failed:
- A collection stays pending, however old it is. If it’s unpaid, the expiry sweep closes it at the end of the payment window, and the late-outcome check keeps asking.
- A payout stays pending for 30 minutes, then counts as unknown and is left for a person. Failing it would free the money to be sent again.
- Real declines still end the payment at once: decline codes
101,102,103,104,105,107and114(insufficient funds, a wrong PIN, a timeout and the like), whatever their wording. For code100, the wording decides.
A status check from the console shows “{partner} has no record of this payment yet (code {code}), so nothing was changed.”, followed by:
- For a collection: “If the customer approved it, it will show here; if not, it closes when the payment window ends. If this appears on every payment, check the partner’s credentials and status path.”
- For a payout: “It will be checked again; after 30 minutes it is left for a person to confirm with the partner. If this appears on every payout, check the partner’s credentials and status path.”
A miss on a payment still in progress is logged as a warning, “partner’s status
lookup could not find the transaction”, with lookup_code. A miss on an expired
payment, or one the late-outcome check is still asking about, is logged at debug
level only. That’s because an abandoned prompt is asked about for two days.
This applies only to status reads. The first answer to the collection request is read as before.
Direct card entry (direct_card_entry on, with CARD_DIRECT_ENTRY on the
gateway). When the pay page has taken the card itself, it goes to
POST /v1.1/transaction/process with:
-
processing_code000000; -
r-switchVISorMAS, chosen from the card number; -
pan,exp_monthandexp_year(two digits each),cvvandcard_holder; -
customer_email; -
3d_url_response, our return address; -
amountandcurrency. -
Only Visa and Mastercard. Any other card is declined with “This card type is not accepted. Use a Visa or Mastercard.”
-
000is pending, not paid. Like every PaySwitch collection, it’s confirmed by the status read. The immediate answer never credits the merchant. -
3-D Secure. A
200or “vbv required” answer sends the cardholder to the issuer’s page named inreason, for 15 minutes. It does so only if that address ishttpsontheteller.netor on one of the partner’s configured hosts. Otherwise the payment is refused with “The card issuer’s verification page could not be opened. Try again or use another card.” -
Declines are classed like any other PaySwitch rejection.
-
Card data is removed from PaySwitch’s answer before it’s stored, at any depth:
- card fields (
pan,cvv,cvc,cvv2,exp_month,exp_year,expiry,card_holder,card_number,cardnumber,number) are dropped; - any 12 to 19 digit number that passes the Luhn check is masked to its last four digits.
Ids and amounts (
transaction_id,reference_id,merchant_id,amount, and the like) are left alone, because a 12-digit id can pass the check by chance. - card fields (
-
A card email is required. A card payment without the customer’s email is refused as a configuration error, as is one without a return address.
The pay page asks for the card only when every partner on the card route can
take it. That means every partner the merchant’s card collections could be
routed to, including ties drawn by weight and failover. A Paystack or Flutterwave
partner on the route, or a PaySwitch partner with the setting off, sends the
payer to the hosted page instead. The route is judged again at the real amount
when the payer presses Pay. If it has changed, the card is discarded unsent
and the payer gets the hosted page. Without a card, the hosted checkout works as
before.
Bank payouts are two calls. 404020 is the name enquiry. It moves nothing, and
returns a reference_id and the bank’s account_name. The money moves only when
that reference is authorised, with
POST /v1.1/transaction/bank/ftc/authorize and {merchant_id, reference_id}.
Before authorising, the bank’s account name must share at least one word (of two
letters or more, in any order) with the recipient name given. Otherwise the
payout is refused with “The bank names this account’s holder as …, not …. Nothing
was sent.” The check is skipped when either name is empty. An answer with no
reference_id is an account on the older single-call transfer, and is read as
before.
Amounts PaySwitch reports. Where PaySwitch adds its own fee onto what the
customer pays, its amount is the total debited. On live, for example, 2.10 is
reported for a 2.06 collection, with surcharge_amount 0.04. The adapter reads
original_amount first, both on status checks and on callbacks, and falls back to
amount. The fee it reports (theteller_fees, charges or surcharge_amount, whichever
comes first) is recorded as the partner’s actual fee, except when it was added on
top. If amount exceeds original_amount by exactly the reported fee, the
customer paid it over our price. PaySwitch then remits our whole amount, so the
partner fee is recorded as 0 and the ledger’s receivable matches PaySwitch’s
statement. The surcharge isn’t part of our amount or fee.
If the PaySwitch account is set to “customer pays”, set Partner’s fee on collections to Payer pays (see Who pays the partner’s fee), and keep its partner cost rule exact. We then ask PaySwitch for less, and the customer’s phone prompt shows the same total as our page. The rest of this section describes a PaySwitch partner left on We pay while its account adds the fee on top.
The payment page doesn’t show that surcharge. We don’t learn it before the charge. The page shows our amount, and our fee when the customer bears it. PaySwitch then adds its own fee to the prompt on the customer’s phone. So when the PaySwitch account is set to charge its fee to the customer, the payer may see a slightly higher amount on the prompt than on the page. That is a setting at PaySwitch’s end, not ours.
The partner page
Section titled “The partner page”Seven tabs: Profile, Capabilities, Institution codes, Performance, Health history, Float, Callbacks. Header actions: Edit details, Edit settings, Change status, Set credentials, and health.
Capabilities
Section titled “Capabilities”“Which channel and direction pairs this partner will carry.” Collections, Payouts, Refunds, Name enquiry, Balance check are declared flags: a rail that does not support payouts must not be routed payout traffic, and the routing resolver reads these.
A capability row is added or edited with:
| Field | Notes |
|---|---|
| Channel | Mobile money, bank, card — the rail. |
| Direction | Collection or payout. The pair is what routing matches on. |
| Currency | What this pair is declared for. |
| Let routing send this partner traffic on this rail | Off keeps the row and stops dispatch. It is how a rail is paused without deleting what is known about it. |
| Settles in (hours) | “How long after a payment the money is actually with us. Drives the settlement forecast.” |
| Notes | “What a reader needs to know about this rail.” |
| Why | The audit log. |
Switching a row on is refused with 409 if this build has no such adapter, or if the adapter is one still to be confirmed. Switching one off is always allowed.
The settlement-delay figure is read by the forecast rather than by the ledger, so a wrong one does not misstate a balance — it misstates when money is expected, which is what somebody chasing a late settlement is looking at.
Institution codes
Section titled “Institution codes”The vendor’s own codes for the banks and networks they reach. This is the tab that produces a failure after routing has already committed:
| Field | Notes |
|---|---|
| This code names | “A bank or a network, never both — the endpoint refuses a row carrying two.” |
| Bank / Network | Chosen from a dropdown. “Inactive banks are listed too: a code is often set up before the bank is switched on for merchants.” |
| Channel | Which rail the code applies on. |
| Collection code | “The vendor’s code for collecting from this institution.” |
| Payout code | “WITHOUT THIS, EVERY PAYOUT TO THIS INSTITUTION FAILS — after routing has already picked this partner.” |
| Enabled | “A disabled code is kept but not used for dispatch.” |
| Why | The audit log. |
Codes by number prefix
Section titled “Codes by number prefix”Some partners may still split a network we treat as one, for example Airtel and Tigo within our single AirtelTigo network. With a single code for the network, the numbers the partner routes elsewhere go to the wrong switch, and the customer sees no prompt.
So, for a mobile-money network, the dialog has a Codes by number prefix section: “Numbers starting with these prefixes use these codes instead.” Each row is a Number prefix → Partner code for this prefix, with Add and remove. Airtel and Tigo prefixes fills in 026, 056, 027 and 057 with blank codes for you to complete. Codes are saved in upper case.
| Rule | Detail |
|---|---|
| Prefix form | The leading digits in local form, such as 026. +233 and 233 numbers match too, and a bare 26 means 026. |
| Longest wins | 0261 can override 026. |
| No match | The number uses the row’s Collection code or Payout code. |
| Scope | One map serves collections, payouts and destination name enquiry. |
The codes table shows the overrides under the collection code, as
026→ATL · 027→TGO · ….
From the API: PUT the channel code (upsertPartnerChannelCode) with
extra.codes_by_prefix, such as
{"codes_by_prefix": {"026": "ATL", "056": "ATL", "027": "TGO", "057": "TGO"}}.
Prefixes must be digits, up to 8, and codes 1 to 50 characters. A bad entry is
refused on extra.codes_by_prefix, because a malformed one would send those
numbers to the wrong switch. Saving keeps the rest of extra. The
Import codes sheet keeps a row’s existing extra, prefix codes included.
Fetching codes from the partner
Section titled “Fetching codes from the partner”Some partners list their banks and mobile-money networks over their API:
Paystack, Flutterwave and TrendiPay. For those, the codes tab has
Fetch from {partner}. It appears only if you can both request a fetch and
import codes (partner.write). The other partners need a sheet, and their
documentation portals require a login.
-
Fetch from {partner} opens “Fetch codes from the partner”: a Country (two letters, such as
GH) and a Reason for the audit log. Ask the partner queues the request. Only one request per partner can be waiting: a second one is refused (409) until the first is answered. Above the form, Recent fetches lists the last five, with the country, how long ago, and Done, Failed or Waiting. Open takes you back to a list without asking the partner again. A failed fetch can’t be opened. -
The gateway worker asks the partner within a few seconds, and the dialog shows “Waiting for {partner} to answer…” until it does. If the partner doesn’t answer, the dialog says “{partner} did not answer” with the reason. Nothing changes until you import. Neither the fetch nor the worker writes a code.
-
Codes listed by {partner} shows every entry the partner listed, each next to a suggested match among our banks and networks:
Basis Matched when Already used The partner’s code is already one of its codes here, so the institution is the one it names now. Sort code A six-digit GhIPSS sort code, optionally with a country prefix such as GH130100. Its first two digits match exactly one bank’sghipss_code(on the bank in Reference). GIP participant ids (3003xx) are never treated as sort codes.Name The name, ignoring case, punctuation and words like Bank, Ghana, Ltd and PLC, matches exactly one of our banks or networks. Old and partner names for networks count: Vodafone, VOD and VDF for Telecel, Tigo, Airtel, ATL and AT Money for AirtelTigo, and mtngh for MTN. An entry with no single match has no suggestion. Pick the institution yourself, from the list grouped Mobile money and Banks, or leave it out.
-
The strip at the top counts New codes, Changed codes, Already set and No match, and filters the list when clicked. Search the list finds a name or code. Download list saves the whole list as a CSV, with each entry’s suggestion.
-
Tick the rows to import, and edit the collection and payout codes if needed. A changed code shows old → new.
-
Check N codes runs the codes import as a dry run on exactly the ticked rows. Import N codes appears only after a clean check, and any edit after that needs a new check. Two rows for the same institution are refused by the check.
What gets ticked, and what you’re asked to confirm:
- Rows are pre-ticked only when the match is certain (already used, or sort code) and importing would change something. Name matches and entries the partner marks Inactive at {partner} are never pre-ticked.
- The fetched code becomes the payout code. An existing collection code is kept. A network with no code yet gets the fetched code for both. A row’s Enabled setting is kept. A new row is enabled, unless the partner marks the entry inactive: then it’s imported disabled, ready for when the partner can reach it.
- A changed payout code redirects payouts to that institution as soon as you import, so it needs a tick: “I have confirmed these N payout-code changes with {partner}. Payouts to those institutions will use the new codes as soon as I import.”
- The reason is required. Each imported row is audited, as in any import.
Partner notes:
- Paystack: Ghana is read as banks (GhIPSS) and mobile money, and Nigeria,
Kenya and South Africa work too. Entries Paystack has deleted are left out.
Its mobile-money codes are transfer codes (
MTN,VOD,ATL). Paystack’s charges use the lower-case form, which the adapter derives from the same code. - Flutterwave doesn’t say which entries are mobile money, so the list shows no channel. Each entry’s note carries Flutterwave’s bank id, which its branch list needs.
- TrendiPay lists banks and mobile money separately. Its note warns that it
has both
mtnandmtngh; check which one it expects before importing.
From the API (partner.write to request, partner.read to read):
POST /v1/partners/{id}/institution-fetches with country_code and reason
(202; 422 for a partner whose API lists nothing; 409 while one is
already waiting; audited as
partner.institution_fetch.request); GET /v1/partners/{id}/institution-fetches
(the last 20, with can_fetch); and
GET /v1/partners/{id}/institution-fetches/{fetch_id}, which returns
institutions (each with a suggestion and its basis: existing,
sort_code or name), options (our banks and networks for the country) and
current (the partner’s codes now). Importing is the ordinary
POST /v1/partners/{id}/channel-codes/import.
Ghana: the reference sheets
Section titled “Ghana: the reference sheets”assets/reference/partner_codes/<partner>.csv in the PaySigna repository has
one file per partner in the Import codes format. The available files are
payswitch, paystack, flutterwave, trendipay, ecobank, umb, hubtel,
mtn_momo and saopay. Each also has status and source columns, which the
importer ignores. They’re there to tell you where each code came from.
- Import
banks.csvfirst (see Importing banks). Otherwise the codes for banks that don’t exist yet are refused. - Rows that haven’t been verified come in switched off (
is_enabledno). Switch a row on only once the partner has confirmed the code. - Bank codes are missing for Paystack, Flutterwave, TrendiPay, GTBank, UMB and Sao, because those partners don’t publish them. For Paystack, Flutterwave and TrendiPay, use Fetch from {partner}. GTBank, UMB and Sao still need the partner to send a list.
- G-Money, GhanaPay and Zeepay aren’t among the mobile money networks, so there are no codes for them. Add the network first if you need it.
assets/reference/ghana_institution_codes.csv is the master sheet. It has one
row per bank or network, with our code, the GhIPSS sort prefix, the head-office
sort code, the GIP participant id and a column per partner.
Editing details
Section titled “Editing details”Several fields here behave in a way worth knowing:
| Field | Behaviour |
|---|---|
| Display name | “Blank leaves it alone — this endpoint cannot clear a string, only replace one.” |
| Base URL | “Clearing this field does not restore the adapter default, because an empty value is read as ‘leave alone’.” |
| Rate limit | “Blank leaves whatever is set. There is no way to remove a ceiling here.” |
| Webhook grace (s) | At least 1 — the column refuses zero. |
| Supported currencies | ISO 4217, comma separated. REPLACES the whole list. Empty means unconstrained at this level; the capability rows still decide. |
| Supported countries | ISO 3166-1 alpha-2, comma separated. REPLACES the whole list. |
| Why this is changing | Required — “this can stop a rail.” |
Two traps in one table: a field left blank is not a field cleared, and the two list fields replace rather than append. Read the current list before you type a new one.
Changing an address is dual controlled, like the credentials. The adapters
send the partner’s credentials to its addresses, so whoever can repoint one can
collect the keys and answer “paid” to everything. An address is the Base URL,
Callback URL, Webhook URL, or any setting whose name contains url,
host, path or endpoint (async_base_url, status_path_template, …).
Changing any of them:
- needs
partner.credentials.writeas well as the usual edit permission; - needs a second person, picked under Authorised by in Configure or in
the settings dialog, which only appears once an address has changed
(
approved_byonPATCH /v1/partners/{id}), normally someone other than you; - on a live partner, must be an
httpsaddress. Test partners may usehttp, for a local sandbox or a stub.
A sole operator may authorise their own address change. If yours is the only
active staff account, Authorised by offers you (“{name} (you)”): “Yours is
the only account on this platform, so there is nobody else to name.” The change
is then recorded as self_authorised in the audit log. Once a second active
staff account exists, a colleague must approve again.
Setting credentials follows the same rule.
The audit log records the addresses before and after, including the address settings.
Who pays the partner’s fee
Section titled “Who pays the partner’s fee”Two more selects on Configure {code} record how our agreement with the partner handles its own fee. Set them to what the contract says. The partner’s Profile shows them as Fee on collections and Fee on payouts.
| Setting | We pay (default) | Payer pays |
|---|---|---|
| Partner’s fee on collections | “Deducted from what they remit.” We ask the partner for the customer’s total; it keeps its fee and remits the rest. | “Added on top for the customer.” We ask for less: the largest amount which, with the partner’s fee added, is no more than the customer’s total. |
| Partner’s fee on payouts | “Taken from our float.” We send the recipient’s amount and the partner charges us its fee. | “Recipient pays — deducted from what they receive.” We send more: the smallest amount which, less the partner’s fee, is at least what the recipient is owed. |
Examples:
- Collection, payer pays: the customer’s total is GHS 2.06 and the partner charges 2%. We ask it for GHS 2.02; it adds its fee, and the customer approves GHS 2.06. If the partner’s rounding means no amount lands exactly on the total, the customer is asked for one pesewa less, and we absorb it.
- Payout, recipient pays: GHS 100 at 1%. We send GHS 101.01, and the recipient receives GHS 100.
The setting never shows to merchants or their customers. The customer’s total, the recipient’s amount, the merchant’s credit or debit, and our fee are the same either way. It’s applied per partner on each attempt, so failover between differently contracted partners asks each one for the right amount.
At settlement, the partner’s reported amount is checked against what it was
asked to move, stored on the transaction as partner_amount_minor. An empty value
means the customer’s amount, which is how transactions before this setting look.
Under payer pays, the partner cost booked is the difference: the customer’s amount
less what was asked on a collection, or what was sent less the recipient’s amount
on a payout. That way the ledger’s receivable or float matches the partner’s
statement.
From the API: PATCH /v1/partners/{id} with collection_fee_payer and
payout_fee_payer (platform or payer), both returned on the partner. Changes
are audited with before and after.
Setting credentials
Section titled “Setting credentials”Setting credentials needs a second person under Authorised by (approved_by
on PUT /v1/partners/{id}/credentials). If yours is the only active staff
account, you may name yourself: the change is recorded as self_authorised, and a
colleague is required again once a second active account exists.
The whole set is replaced on every save; there is no partial edit. The form lists the adapter’s declared fields by name, as label · key, with where to find each one and what needs it (see What each adapter needs). A field the adapter does not declare can still be added under Anything else. The form won’t submit while a required field is blank. An adapter that declares nothing gets free rows only.
After saving, two warnings may appear. Neither stops the save:
- Required fields left out: every dispatch to this partner fails until the set is stored again with them.
- Names the adapter does not read: stored, but never looked up. Usually a typo of a name it does read.
From the API, PUT /v1/partners/{id}/credentials returns the same two lists as
missing_required[] and unrecognised[]. They are advisory: the write is never
refused because of them.
| Fact / field | Notes |
|---|---|
| Key version | “What a future rotation has to re-wrap.” |
| Fields stored / Field names | Names only. Never a value. |
| When the vendor’s credential lapses | “Optional, and worth recording even approximately.” |
| Why the credentials are being set | “Goes in the audit log, alongside the key version, the expiry and the field names — never a value.” |
Nothing on this screen displays a credential value, and nothing ever should.
Editing settings
Section titled “Editing settings”Actions → Edit settings opens Settings — {code}: “Non-secret configuration the adapter reads. Secrets go in Set credentials.”
- Each declared setting is a field, filled with what is stored. Its default is shown greyed in the empty field.
- Leave a field blank to use the default. A blank field is left out rather than stored empty.
- Stored keys the adapter doesn’t declare are listed below the declared fields and kept unless you clear them.
- A required setting left empty (or
target_environmenton a live MTN partner) shows “Required settings are empty”. That is a warning only, and calls to the partner fail until it is set. - A reason of at least 8 characters is required and goes in the audit log.
Changing an address setting needs a second approver and, on live, https; see
Editing details. The next call to the partner uses the new settings. From the API, settings on
PATCH /v1/partners/{id} replaces the whole object, so send every key you
want to keep.
Performance, float and callbacks
Section titled “Performance, float and callbacks”Performance is “how often this partner works, how slowly, and how often it leaves a payment in doubt” over the last thirty days — the evidence for a routing change, and what to send whoever owns the vendor relationship.
The figures are counted from attempts, and an attempt carries the payment’s final
outcome (see Attempts). Before 000088 a prompt
answered pending stayed pending, so successes were undercounted.
Health history is “every time this partner’s health changed, and whether a person or the breaker did it.” The breaker acts on its own, so a state nobody remembers setting is not a mystery — it is this column.
Float is the balance we hold with the partner. A rail with no float fails payouts regardless of health. The accounts themselves are found by the sweeper rather than created here — “the sweeper found this account; the threshold is yours” — and Watch is where that threshold is set:
| Field | Notes |
|---|---|
| Report as low at or below | In major units, in the account’s own currency. “Zero is valid and means report it only once the float is empty, which is usually too late to act on.” |
| Stop watching this float | “Removes the threshold. The account then becomes UNMONITORED rather than healthy: it is never reported as low again, however far it falls.” |
| Still in use | “Turn this off for an account the vendor has closed. It stops appearing in the default list; nothing is deleted, and the history stays.” |
| Why this figure | Required. “Recorded in the audit log beside the balance it was set against. The next person to look at this number needs to know whose judgement it was.” |
When a float is at or below its threshold, the worker health alert email to staff says “a partner float is low” and names the floats. Payouts routed to them will fail until they’re topped up. Before, this was only logged.
A threshold is “a judgement about how much headroom this rail needs between sweeps, so set it against the traffic rather than against” the last reported balance. On an account no balance has ever been read from, setting one is still worth doing — it is what makes the first low reading visible.
Callbacks is what the vendor has posted back to us: “what arrived, whether its signature checked out, and why it was not processed.”
| Field | Notes |
|---|---|
| Callback id | The row’s id. |
Its created_at |
“Required, and it has to be the row’s own. The table is partitioned on it, so the id alone cannot be looked up.” |
Record an attempt (“Record an attempt on this callback”) “adds one to its attempt count and writes your note to the audit log. Nothing is reprocessed.” Write What was fixed, then Record attempt. Reprocessing comes with the adapter or credential fix. A callback whose payment is still open is settled by the status poller asking the partner, not by this button. It is not a way to make a vendor resend anything.
Callbacks not processed (partner.read) lists “what this partner sent in the
last seven days that was never acted on, oldest first. Each is a payment whose
state we are unsure about.” Received, verified, failed and rejected callbacks
are included, with Signature (“False is the usual reason a callback goes
unprocessed: a credential rotated on one side only.”), Why it stopped,
Their reference and Attempts. Bodies aren’t shown: opening one is its own
audited read.
With partner.write, tick callbacks (the page you’re looking at, at most 200),
then Retry {n} callbacks: “Records an attempt on each, in its retry count and
the audit log. The stored bodies are not reprocessed from here.” What was
fixed (at least 8 characters) goes on every callback’s audit entry
(webhook.inbound.retry, with the batch id), plus one for the batch
(webhook.inbound.bulk_retry). One with no match is skipped.
From the API: GET /v1/webhooks/inbound/unprocessed
(listUnprocessedInboundWebhooks), with optional partner_id and from (default
seven days ago), and POST /v1/webhooks/inbound/bulk-retry
(bulkRetryInboundWebhooks) with webhooks (each id and created_at, as
listed) and reason.
An unsigned callback is only a prompt to ask. For partners whose callbacks
carry no signature (MTN, Ecobank, and PaySwitch without a webhook_secret), we
confirm with the partner before acting. The callback only picks which of our
transactions it is about: by our reference, or by the partner’s own transaction
id among the payments that partner carried. The question to the partner uses the
partner id, reference and direction stored on our transaction, never the ids
in the callback, so a forged callback cannot borrow another payment’s success.
Every callback, signed or not, must come from the partner holding the payment, in the same environment. Otherwise it is refused and the stored callback is marked failed with the reason:
| Reason | Means |
|---|---|
| “the callback came from a partner that does not hold this transaction” | It arrived on another partner’s address. |
| “the callback’s environment does not match the transaction’s” | A test partner’s callback for a live payment, or the reverse. |
| “the callback names a transaction not yet recorded as sent to a partner” | Usually a callback that beat our own record of the call. The status poller resolves the payment. |
When a rail starts failing
Section titled “When a rail starts failing”- Mark it down. Not degraded. Routing then skips it.
- Check Float and Credentials before blaming the vendor — an expired credential and an empty float both present as “the partner is failing”.
- Tell whoever owns the vendor relationship, with the Performance figures.
- Make sure traffic has somewhere to go: see Routing. A rail marked down with no alternative route is an outage either way.
- When it recovers, mark it healthy with a note saying what was fixed. The health history is the record.

