Payments Academy
Payment engine 1 Payment engine NOW 2 Identifier 3 Distinction 4 Routing 5 Engine 6 Payment that settles A payment engine is the specialist component inside a payment hub that executes one type of payment from intake to settlement instruction. Step 1 of 6 Payment engine 1 NOW Payment engine 2 Identifier 3 Distinction 4 Routing 5 Engine 6 Payment that settles A payment engine is the specialist component inside a payment hub that executes one type of payment from intake to settlement instruction. Step 1 of 6
Identifier must be unique across 1 Payment engine 2 Identifier NOW 3 Distinction 4 Routing 5 Engine 6 Payment that settles The identifier must be unique across the bank and stable for the life of the payment, because every later message, status update, investigation and reconciliation entry refers to it. Step 2 of 6 Identifier must be unique across 1 Payment engine 2 NOW Identifier 3 Distinction 4 Routing 5 Engine 6 Payment that settles The identifier must be unique across the bank and stable for the life of the payment, because every later message, status update, investigation and reconciliation entry refers to it. Step 2 of 6
Distinction matters because the two failures go 1 Payment engine 2 Identifier 3 Distinction NOW 4 Routing 5 Engine 6 Payment that settles The distinction matters because the two failures go to different teams and have different fixes. Step 3 of 6 Distinction matters because the two failures go 1 Payment engine 2 Identifier 3 NOW Distinction 4 Routing 5 Engine 6 Payment that settles The distinction matters because the two failures go to different teams and have different fixes. Step 3 of 6
Routing decides which clearing system 1 Payment engine 2 Identifier 3 Distinction 4 Routing NOW 5 Engine 6 Payment that settles Routing decides which clearing system and which settlement account the payment uses. Step 4 of 6 Routing decides which clearing system 1 Payment engine 2 Identifier 3 Distinction 4 NOW Routing 5 Engine 6 Payment that settles Routing decides which clearing system and which settlement account the payment uses. Step 4 of 6
Engine must do this atomically where it 1 Payment engine 2 Identifier 3 Distinction 4 Routing 5 Engine NOW 6 Payment that settles The engine must do this atomically where it matters: the debit and the clearing message are either both recorded or neither is Step 5 of 6 Engine must do this atomically where it 1 Payment engine 2 Identifier 3 Distinction 4 Routing 5 NOW Engine 6 Payment that settles The engine must do this atomically where it matters: the debit and the clearing message are either both recorded or neither is Step 5 of 6
Payment that settles 1 Payment engine 2 Identifier 3 Distinction 4 Routing 5 Engine 6 Payment that settles NOW A payment that settles but is not posted is a reconciliation break waiting to happen, which is why the engine treats posting as part of the payment, not as a back office afterthought. Step 6 of 6 Payment that settles 1 Payment engine 2 Identifier 3 Distinction 4 Routing 5 Engine 6 NOW Payment that settles A payment that settles but is not posted is a reconciliation break waiting to happen, which is why the engine treats posting as part of the payment, not as a back office afterthought. Step 6 of 6

Flow of the explanation in this lesson.

0:00 / 6:00 Step 1 of 6

Payment engine modules: the anatomy of an engine

Payment engine internals and observability, Lesson 1 of 7, Narration 6:00, D09 Payment architecture and technology

ReconciliationAuthorisationPayment hub

What you will learn

Your objective. By the end of this lesson, you will be able to explain payment engine modules: the anatomy of an engine and apply it to a real banking scenario.

Why it matters. For a business analyst, the test of a good engine design is simple: every state transition is logged, every failure has a defined recovery path, and no payment can be lost between two modules.

Chapter objective: What is inside a payment engine, and how operations sees what it is doing

Key learning points

  • Payment engine
  • Unique payment identifier
  • Distinction matters because the two failures go
  • Unresolved enrichment fields
  • Payment processing and debit
  • Status updates to the channel

Key terms

Reconciliation: The process of comparing records from two sources, such as a bank statement and an internal ledger, to confirm they agree.

Authorisation: Approval by the issuer for a card transaction to proceed, confirming the card is valid and funds or credit are available.

Payment hub: A central system in a bank that receives payment instructions from all channels, validates them, applies screening and routing rules, and sends them to the correct clearing system or correspondent.

Payment flow diagram showing Payment engine modules: the anatomy of an engine.

Practise this lesson

Exercise

Route the payment described in this lesson and justify the route.

Use the routing rules, the correspondent chain and the charges in this lesson.

  1. What to do. Name each bank in the chain, the message used on each leg, and the charges deducted at each step.

Correct result. The route follows the correspondent chain from the debtor agent to the creditor agent, with each intermediary deducting its charge and passing the remainder on. The message on each leg carries the information the next bank needs.

Why. Routing is a business decision with a cost. The wrong route is slower, more expensive, or fails.

Check your understanding

Practice question

Which of the following best describes payment engine modules: the anatomy of an engine?

Takeaway and next step

What to remember

The engine must do this atomically where it matters: the debit and the clearing message are either both recorded or neither is, so a system crash cannot leave a payment debited but never sent, or sent but never debited.

Follow EUR 250,000 through every stage, from instruction to beneficiary credit, and note where it can stop.

Open the Payment Lifecycle Simulator →

Builds on "Scheme compliance: mandates, fines and the certification cycle".

Transcript and full text

Show transcript

A payment engine is the specialist component inside a payment hub that executes one type of payment from intake to settlement instruction. A bank typically runs separate engines for high value payments, low value and bulk payments, instant payments, card authorisation, and cross border payments, because each has different clearing, settlement and cut off rules. The modules are intake, validation, enrichment, routing, booking, clearing and settlement instruction, and each one is covered in this chapter. The engine is not the hub itself: the hub is the platform that hosts the engines, applies common controls once, and routes each payment to the right engine. Understanding the modules inside an engine is what lets a business analyst write requirements that a developer can build, and lets an operations analyst know exactly where a payment is stuck. Source: ISO 20022 Business Application Header and payment message usage guidelines; bank payment hub reference architectures. Every engine starts with an intake module. Intake accepts the payment instruction from the hub in a canonical internal format, assigns a unique payment identifier, and records the instruction exactly as received. The identifier must be unique across the bank and stable for the life of the payment, because every later message, status update, investigation and reconciliation entry refers to it. Intake also stamps the receipt time, which matters for cut off decisions and for service level measurement. A payment that arrives at 16:59:58 for a 17:00 cut off is accepted; one that arrives at 17:00:01 is queued for the next cycle or rejected, and the difference of three seconds is a business rule, not a technical accident. Validation follows intake and has two layers. Technical validation checks the message structure: mandatory fields present, field formats correct, code values drawn from the allowed code set, and the message valid against its XML schema. Business validation checks the instruction against the bank's own rules: the debtor account exists and belongs to the instructing party, the amount is within the product limit, the currency is supported for this engine, and the value date is not in the past. A payment that fails technical validation is rejected with a reason code such as FF01 for an invalid format; one that fails business validation is rejected with a code such as AC01 for a closed account or AM04 for insufficient funds. The distinction matters because the two failures go to different teams and have different fixes. For a business analyst, the requirement is to define this behaviour explicitly, because the engine does what the requirement says and nothing more. Enrichment fills in what the instruction does not carry. The engine looks up the debtor account details, the beneficiary bank identifier, the clearing system and cut off for the route, the applicable charges, and the screening lists that apply. Enrichment also derives the settlement method: whether the payment settles through a central bank account, a correspondent nostro account, or a prefunded scheme account. A corporate payment of EUR 250,000 from Munich to Lyon is enriched with the beneficiary bank BIC, the STEP2 clearing route, the T2 settlement account, and the charge of EUR 0.35 that the bank applies to SEPA credit transfers. If enrichment cannot resolve a field, for example a BIC that does not exist, the payment stops in a worklist for an operator to repair rather than failing silently. The operations team must be able to see this state on a dashboard, because a payment that cannot be seen cannot be managed. Routing decides which clearing system and which settlement account the payment uses. The routing module reads the enriched instruction and applies the routing table: a set of rules that map currency, country, amount, value date and product to a clearing system. A sterling payment of GBP 450,000 for a property purchase routes to CHAPS; the same amount in euros routes to T2; a GBP 1,250 payment on a Saturday routes to Faster Payments. Routing also handles fallbacks: if the preferred clearing system is unavailable, the engine routes to the next available system that can carry the payment, and records the fallback so operations can see why the payment took a different path. Routing rules are reference data, owned by the product team, and every change to a routing rule is versioned and tested before it goes live. A test that does not cover this case will pass in the test environment and fail in production, when the cost is highest. Processing executes the payment: debit the debtor account, apply charges, hold or release the funds, send the clearing message, and wait for the settlement confirmation. The engine must do this atomically where it matters: the debit and the clearing message are either both recorded or neither is, so a system crash cannot leave a payment debited but never sent, or sent but never debited. Atomicity is the property that makes the engine trustworthy. This is achieved with a transaction log and a state machine: the payment moves through states such as Received, Validated, Enriched, Routed, Debited, Sent, Settled and Completed, and each state change is written to the log before the next action is taken. If the engine crashes between states, it recovers by reading the log and resuming from the last recorded state, never by re-executing an action that already happened. Settlement and posting close the payment. When the clearing system confirms settlement, the engine posts the settlement entry to the ledger: credit the settlement account and debit the suspense or clearing account, so the books balance. It then sends a status update to the channel that originated the payment, so the customer sees the payment as completed, and it writes the final status to the audit trail. A payment that settles but is not posted is a reconciliation break waiting to happen, which is why the engine treats posting as part of the payment, not as a back office afterthought. For a business analyst, the test of a good engine design is simple: every state transition is logged, every failure has a defined recovery path, and no payment can be lost between two modules. Further reading: ISO 20022 message usage guidelines; SWIFT CBPR+ implementation guides; bank payment hub reference architectures. Last reviewed 7 November 2026.

A payment engine is the specialist component inside a payment hub that executes one type of payment from intake to settlement instruction. A bank typically runs separate engines for high value payments, low value and bulk payments, instant payments, card authorisation, and cross border payments, because each has different clearing, settlement and cut off rules. The modules are intake, validation, enrichment, routing, booking, clearing and settlement instruction, and each one is covered in this chapter.

The engine is not the hub itself: the hub is the platform that hosts the engines, applies common controls once, and routes each payment to the right engine. Understanding the modules inside an engine is what lets a business analyst write requirements that a developer can build, and lets an operations analyst know exactly where a payment is stuck. Source: ISO 20022 Business Application Header and payment message usage guidelines; bank payment hub reference architectures.

Every engine starts with an intake module. Intake accepts the payment instruction from the hub in a canonical internal format, assigns a unique payment identifier, and records the instruction exactly as received. The identifier must be unique across the bank and stable for the life of the payment, because every later message, status update, investigation and reconciliation entry refers to it. Intake also stamps the receipt time, which matters for cut off decisions and for service level measurement. A payment that arrives at 16:59:58 for a 17:00 cut off is accepted; one that arrives at 17:00:01 is queued for the next cycle or rejected, and the difference of three seconds is a business rule, not a technical accident.

Validation follows intake and has two layers. Technical validation checks the message structure: mandatory fields present, field formats correct, code values drawn from the allowed code set, and the message valid against its XML schema. Business validation checks the instruction against the bank's own rules: the debtor account exists and belongs to the instructing party, the amount is within the product limit, the currency is supported for this engine, and the value date is not in the past.

A payment that fails technical validation is rejected with a reason code such as FF01 for an invalid format; one that fails business validation is rejected with a code such as AC01 for a closed account or AM04 for insufficient funds. The distinction matters because the two failures go to different teams and have different fixes. For a business analyst, the requirement is to define this behaviour explicitly, because the engine does what the requirement says and nothing more.

Enrichment fills in what the instruction does not carry. The engine looks up the debtor account details, the beneficiary bank identifier, the clearing system and cut off for the route, the applicable charges, and the screening lists that apply. Enrichment also derives the settlement method: whether the payment settles through a central bank account, a correspondent nostro account, or a prefunded scheme account.

A corporate payment of EUR 250,000 from Munich to Lyon is enriched with the beneficiary bank BIC, the STEP2 clearing route, the T2 settlement account, and the charge of EUR 0.35 that the bank applies to SEPA credit transfers. If enrichment cannot resolve a field, for example a BIC that does not exist, the payment stops in a worklist for an operator to repair rather than failing silently. The operations team must be able to see this state on a dashboard, because a payment that cannot be seen cannot be managed.

Routing decides which clearing system and which settlement account the payment uses. The routing module reads the enriched instruction and applies the routing table: a set of rules that map currency, country, amount, value date and product to a clearing system. A sterling payment of GBP 450,000 for a property purchase routes to CHAPS; the same amount in euros routes to T2; a GBP 1,250 payment on a Saturday routes to Faster Payments.

Routing also handles fallbacks: if the preferred clearing system is unavailable, the engine routes to the next available system that can carry the payment, and records the fallback so operations can see why the payment took a different path. Routing rules are reference data, owned by the product team, and every change to a routing rule is versioned and tested before it goes live. A test that does not cover this case will pass in the test environment and fail in production, when the cost is highest.

Processing executes the payment: debit the debtor account, apply charges, hold or release the funds, send the clearing message, and wait for the settlement confirmation. The engine must do this atomically where it matters: the debit and the clearing message are either both recorded or neither is, so a system crash cannot leave a payment debited but never sent, or sent but never debited. Atomicity is the property that makes the engine trustworthy.

This is achieved with a transaction log and a state machine: the payment moves through states such as Received, Validated, Enriched, Routed, Debited, Sent, Settled and Completed, and each state change is written to the log before the next action is taken. If the engine crashes between states, it recovers by reading the log and resuming from the last recorded state, never by re-executing an action that already happened.

Settlement and posting close the payment. When the clearing system confirms settlement, the engine posts the settlement entry to the ledger: credit the settlement account and debit the suspense or clearing account, so the books balance. It then sends a status update to the channel that originated the payment, so the customer sees the payment as completed, and it writes the final status to the audit trail.

A payment that settles but is not posted is a reconciliation break waiting to happen, which is why the engine treats posting as part of the payment, not as a back office afterthought. For a business analyst, the test of a good engine design is simple: every state transition is logged, every failure has a defined recovery path, and no payment can be lost between two modules. Further reading: ISO 20022 message usage guidelines; SWIFT CBPR+ implementation guides; bank payment hub reference architectures. Last reviewed 7 November 2026.

Full lesson text (all scenes)

Completing a lesson updates your progress dashboard on the homepage.

Scene timestamps are estimated by allocating the narration text proportionally across the real audio length. The audio playback position is the source of truth: pause freezes the visual, seeking restores the correct scene, replay restarts the scene animation.