Skip to content

Platform modules

Payment Engine for PSPs: What Runs Each Transaction

A payment engine is the core that carries each transaction from the moment a merchant sends it to the moment it's settled or refunded. It validates the request, screens it for fraud, authenticates the cardholder, sends it to an acquirer, tracks its status and keeps the record your finance team will reconcile. Everything else in a gateway, from the dashboard to the merchant API, sits on top of it.

Our gateway's engine runs that lifecycle for cards, wallets and local payment methods across 700+ connectors. Below, you'll find the steps it handles, the states a payment moves through, what makes an engine reliable, and what to ask a vendor before you license one.

What the payment processing engine does, step by step

Every card payment goes through the same sequence, even when it takes half a second. Here's what the engine does at each step:

  1. Validates the request, so a malformed card number or missing field fails at once with a clear message.
  2. Stores the card in the vault and works with a token from here on.
  3. Screens the payment with the configurable fraud filters and any external scoring you've connected.
  4. Runs 3-D Secure when your rules or the regulation call for it, on the platform or through an external MPI.
  5. Picks a provider through the routing rules and sends the authorization in that provider's format.
  6. Reads the answer, maps it to one status, and cascades a soft decline to the next provider if your rules allow.
  7. Records the outcome and notifies the merchant through the API and webhooks.

Most of an engine's value is in steps 6 and 7. Sending a request is easy. Reading 700 different providers' answers consistently is the hard part, and it's where engines differ. Steps 6 and 7 are where to judge any payment engine software you compare.

The life of a transaction after authorization

Authorization is the start, not the end. A transaction engine has to follow each payment through the states that come later, and each state change touches money.

State What happens What an engine has to track
Authorized The issuer approves and funds are held Amount, provider, and how long the hold lasts
Captured The merchant confirms the sale Full or partial capture against the hold
Settled The acquirer pays out Fees, reserves and the merchant's net amount
Refunded Money goes back to the customer Full or partial refunds against the original payment
Disputed The cardholder files a chargeback The dispute workflow and its deadlines

Partial captures and partial refunds are where weak engines break. Test both against your providers before you go live, since each acquirer handles them in its own way, and a refund that works on one connector can fail quietly on another.

What makes a payment engine reliable

Reliability comes from what happens when things go wrong. A good engine stops sending payments to a provider that goes down, treats an unclear provider answer as unresolved rather than failed, and keeps one internal ID per payment attempt through every retry, so a cascaded payment stays one payment in every report.

Scale matters too. It's rarely the first limit a new PSP hits, though. Connectors, status handling and reporting break long before throughput does, which is why gateway architecture often splits them into separate services that fail independently.

What to ask before you license payment engine software

The engine is the part you can't see in a demo, so ask questions that make it visible. These five cover most of the risk:

  • How many providers does it connect to today, and how long does a new connector take?
  • How does it handle partial captures, partial refunds and chargebacks for each provider?
  • What happens to a payment when the provider times out?
  • Where can it run, and who holds the PCI DSS certification in each case?
  • Who supports it after launch, and how often is it updated?

Our answers: 700+ connectors with a new one in about 14 days; dispute workflows in the merchant back office; timeouts treated as failures and retried through backup channels under your rules; SaaS, your cloud account or your servers, with PCI DSS Level 1 on SaaS; a dedicated payment team and monthly platform updates.

Questions

What is a payment engine?

It's the core of a payment gateway that processes each transaction: validation, fraud checks, authentication, routing, authorization and every later state such as capture, refund and dispute.

Is a payment engine the same as a payment switch?

Not quite. A switch forwards transaction messages between parties, while a payment engine also manages fraud checks, routing decisions and the full transaction lifecycle.

Can I license a payment engine and run it myself?

Yes. Our platform runs as SaaS, in your own cloud account or on your own servers, with the same engine in each case.

Which payment methods does the engine handle?

Cards, Apple Pay and Google Pay, and local payment methods through the 700+ connectors, in 200+ currencies.

See the engine run a payment

Bring a payment flow you want to test, with its captures, refunds and disputes, and we'll run it on the platform.