What you will learn
- Authorisation rates and settlement reliability as the measures
- Onboarding, checkout, fraud, and settlement as the core
- Idempotency and ledger discipline
- Acquirer partnerships
A payment gateway lets online businesses accept cards and other payment methods, routes each payment to the right processor, and settles the money to merchants. Merchants judge it on authorisation rates and payout reliability, not on dashboard design.
The gateway covers merchant onboarding, checkout integration, payment authorisation through acquirers and card networks, fraud screening, refunds, chargebacks, and settlement reporting. It sits between the merchant's checkout and the banking system, and must never lose track of a payment.
What the payment gateway does
It serves e-commerce stores, subscription businesses, marketplaces, and platforms collecting payments for others. Marketplaces add split payments and seller payouts, which change the gateway's money model significantly compared with simple store checkout.
Core features
The feature list below covers what users actually open the product to do. Anything that does not serve one of these jobs is a candidate to cut from the first release.
- Checkout integration: Hosted checkout pages, embedded payment forms, and APIs for cards, wallets, and local payment methods, with tokenisation so merchants never store card numbers.
- Merchant onboarding and KYC: Business verification, bank account checks, and risk review, with staged limits that let low-risk merchants start quickly.
- Fraud screening: Velocity checks, device signals, address and card verification, and rule-based or model-based scoring that blocks fraud without declining good customers.
- Refunds and chargebacks: Full and partial refunds, chargeback notifications, evidence submission, and representment workflows tracked to resolution.
- Settlements and payouts: Scheduled settlements to merchant bank accounts with detailed reports tying every payout to its underlying transactions.
- Reporting and reconciliation: Real-time transaction reports, fee breakdowns, and reconciliation files merchants use to match gateway data against their own accounts.
How it is built
Build in order, and do not skip the early validation steps. Most failed projects in this category fail because the workflow was never agreed with real users before code was written.
- Choose acquirers and payment methods: Secure acquiring partnerships and decide launch payment methods, since authorisation rates depend on routing and method coverage.
- Build merchant onboarding: Ship verification and staged limits with compliance review, because onboarding speed determines merchant acquisition.
- Build checkout and authorisation: Ship tokenised checkout and authorisation routing, and test declines, retries, and network failures thoroughly.
- Add fraud screening: Layer fraud rules and scoring, tuned against real traffic, so fraud controls do not strangle legitimate sales.
- Add refunds, chargebacks, and settlements: Build the post-payment flows merchants rely on daily, with reconciliation reports proven against bank data.
- Pilot with real merchants: Process live payments for a small merchant group, monitor authorisation rates and support contacts, and fix routing issues before scaling.
Technology considerations
Payment processing demands idempotency everywhere: a retried request must never charge a customer twice. Transaction state machines, exactly-once ledger entries, and webhook delivery with retries are core engineering, not polish.
Card data security follows strict standards for storage and transmission, which is why tokenisation and hosted fields matter: the gateway should minimise how much card data it ever touches. High availability is also a revenue requirement, since gateway downtime is merchant downtime.
Challenges to plan for
These are the problems that most often delay this kind of project. Naming them early lets the budget and the schedule absorb them instead of being derailed by them.
- Authorisation rates varying by acquirer, card type, and region.
- Fraud patterns shifting faster than static rules.
- Chargeback handling that consumes merchant support time.
- Reconciliation disputes when gateway and bank records differ.
- Regulatory and card-scheme compliance that changes without warning.
What belongs in the first release
A first release of this payment gateway should cover the core jobs listed above: Checkout integration, Merchant onboarding and KYC, Fraud screening, Refunds and chargebacks, Settlements and payouts, Reporting and reconciliation. If those jobs work reliably for real users, the product has earned its next phase. Features outside that list, however attractive in a sales meeting, should wait until the core is proven, because every extra feature in version one is also extra testing, extra support, and extra surface for things to break.
Scope discipline matters most at the point where a stakeholder asks for one more integration or report before launch. The right answer is usually a phased plan: ship the core, measure how users actually behave, and then add the extension that the evidence supports. That approach keeps the launch date realistic and leaves room to fix the problems that only real use reveals.
Cost and timeline: cost and delivery time vary widely with scope, integrations, and compliance requirements. Treat any figure quoted without a scope review as approximate only, and confirm with a written quote before committing.
Frequently asked questions
What is the difference between a gateway and a payment processor?
A gateway securely collects and routes payment data; a processor or acquirer moves the money through card networks to banks. Many providers combine both, but the roles are distinct.
How do merchants get paid?
Payments are collected, fees deducted, and the balance settled to the merchant's bank account on a schedule, with reports tying payouts to transactions.
How is card data kept safe?
Through tokenisation, encryption, and compliance with card-industry security standards, so merchants and the gateway minimise stored card numbers.
What causes declined payments?
Insufficient funds, bank fraud blocks, incorrect details, and gateway routing issues are common. Good gateways show merchants decline reasons and retry options.
How long does it take to build?
A payment gateway with onboarding, checkout, fraud screening, and settlements is typically a many-month build, plus acquirer and compliance timelines.