A customer sees “Payment successful.” The shop’s dashboard shows a sale. Yet the money has not reached the shop’s bank account.
Those three observations can all be true. A payment moves through several systems, and the message shown at checkout describes only part of that journey. Understanding the journey helps developers design better payment flows and helps business owners ask more useful questions when money appears delayed.
Let’s follow a hypothetical ₦20,000 online purchase. The amounts below are examples, not a provider’s pricing or a statement of Nigerian tax rules.
First, separate the gateway, wallet and infrastructure
A payment gateway helps a merchant collect and transmit payment information through an integration or checkout experience. A digital wallet is a customer-facing payment tool: depending on the product, it may hold a balance, store payment credentials, or offer access to other payment methods.
Payment infrastructure is the wider set of systems that makes those experiences work. It can include processors, banks, networks, ledgers, fraud controls, reconciliation services and payout systems. One company may provide several of these functions, so the labels do not necessarily identify separate businesses.
Stripe’s introductions to payment gateways and digital wallets provide useful background on these roles.
The practical question is what each component does in your transaction. Who accepts the instruction? Who maintains the balance? Who confirms the outcome? Who eventually pays the merchant?
1. The customer begins a payment
Our customer places an order for ₦20,000 and selects a payment method. The merchant creates an internal order reference, then starts a payment attempt with its provider.
The order and the payment attempt should remain distinguishable. One order might have several attempts after a declined card or an abandoned checkout. Equally, two separate orders should not be merged merely because their amounts match.
As a design recommendation, record enough information to connect the order, the provider’s reference, the expected amount and currency, and the eventual outcome. This makes later support and reconciliation much easier than searching by a customer’s name alone.
2. Approval may come before the money moves
In a typical card flow, authorization checks whether the payment can proceed and may reserve funds. Capture is a later stage that requests completion of the charge. Some integrations combine these steps automatically; others separate them.
Adyen’s payment-lifecycle documentation distinguishes authorization, capture, settlement and payout. It also shows why a provider’s “settled” status need not mean that the merchant’s bank account has already been credited.
Not every payment method follows the same sequence. A bank transfer, a wallet-to-wallet transfer and a card purchase can have different rules and terminology. Use your provider’s documented states rather than forcing every method into a card-shaped flow.
3. Your server needs reliable evidence
The customer’s browser may close immediately after payment. A redirect may fail. A mobile connection may disappear while your backend is still processing the transaction.
For that reason, a success screen alone should not trigger irreversible fulfilment. Your server should establish the payment outcome through the provider’s supported verification mechanism and check that it matches the order.
For example, Paystack’s verification documentation describes checking a transaction using its reference and validating its status and amount. The general lesson is to verify the intended payment, not merely the presence of a reference or a reassuring message.
For the ₦20,000 purchase, a genuine payment for ₦2,000 is still the wrong payment. A successful payment for another order is also insufficient. The business action depends on the full match.
4. Notifications can arrive later, or more than once
A webhook is a server-to-server event notification. It helps your application learn that a payment succeeded, failed or changed state without relying on the customer keeping a browser open.
Webhook handlers need to verify authenticity and tolerate delivery behaviour such as retries and duplicates. Stripe’s webhook documentation explains signature checks, repeated delivery and event-ordering considerations. These are integration requirements to inspect for each provider, not assumptions to copy blindly.
Consider a simple failure: your system credits a seller, then the response to the webhook gets lost. The provider retries. If your handler credits the seller again, one customer payment becomes two seller credits.
A practical design is to make fulfilment and ledger updates idempotent: processing the same business event again must not repeat its financial effect. Record the event and the business action consistently, and make duplicate handling safe under concurrent requests.
5. A timeout is not proof of failure
Suppose the request to start a payment times out after the provider receives it. Your application does not know whether the provider acted. Starting a new payment immediately can create a second charge.
An idempotency key lets a provider recognize a supported retry as the same logical request. Stripe’s idempotent-request reference describes its specific behaviour, including differences between API versions. Retention periods and retry semantics vary, so read the relevant provider documentation.
Think of two protections: request idempotency helps prevent duplicated outgoing operations; event deduplication helps prevent duplicated reactions to incoming notifications. A reliable payment flow needs both where applicable, plus a way to investigate uncertain outcomes.
6. Settlement and payout answer different questions
Settlement concerns the financial obligations and movement of funds within the payment arrangement. Payout concerns funds being sent to the merchant’s chosen destination. Providers sometimes use these words differently, so reports and contracts should define them.
For our hypothetical sale, imagine a provider fee of ₦300 and no other deductions. The gross sale is ₦20,000, the fee is ₦300, and the expected net amount is ₦19,700. That is arithmetic for this example, not a fee recommendation.
The shop should preserve the gross sale and the fee separately. Replacing the sale amount with ₦19,700 makes it harder to explain why the customer paid ₦20,000, how much revenue was earned, and what the payment service charged.
7. Reconciliation closes the loop
Reconciliation means comparing records that describe the same financial activity and investigating differences. For this example, compare the order, the successful payment, the provider’s fee and settlement records, and the payout visible at the bank.
A useful internal report might distinguish:
- Orders marked paid with no matching provider confirmation.
- Confirmed payments that have not triggered fulfilment.
- Expected payouts that do not match the amount received.
- Refunds or reversals that have not reached the internal ledger.
Matching the total bank balance is not enough. Two mistakes can cancel each other numerically while leaving two customers with incorrect records. Transaction-level evidence makes that harder to miss.
Build around states, not just a green tick
A useful dashboard separates what the customer experienced from what the financial records confirm. “Awaiting confirmation,” “payment confirmed,” “refund pending” and “paid out” describe different operational situations.
There is no single status vocabulary for every provider. What matters is that your team can explain each state, identify the evidence behind it, and recover safely when communication fails.
The next time a payment looks delayed, ask where it is in the journey. Was the instruction received? Was it approved? Did your server verify it? Was the merchant credited internally? Has a payout actually arrived? Those questions turn a vague “payment problem” into something the team can investigate.