Payments Academy
User story in payments PAYMENT OPERATIONS STARTED LIVE 01 User story in payments - follows the same format as any other domain: ACTIVE 02 Testable acceptance criteria - criterion that says the payment is processed QUEUED 03 Gherkin When step - states the action QUEUED 04 Exception Gherkin scenarios - scenario proves the product handles QUEUED 05 Story splitting in payments - follows the lifecycle. QUEUED 06 BA practice - Last reviewed 7 November 2026. QUEUED A user story in payments follows the same format as any other domain: as a role, I want a capability, so that I achieve a benefit. Step 1 of 6 User story in payments STARTED User story in payments follows the same format as any other domain: ACTIVE Testable acceptance criteria criterion that says the payment is processed QUEUED Gherkin When step states the action QUEUED Exception Gherkin scenarios scenario proves the product handles QUEUED Story splitting in payments follows the lifecycle. QUEUED BA practice Last reviewed 7 November 2026. QUEUED A user story in payments follows the same format as any other domain: as a role, I want a capability, so that I achieve a benefit.
Testable acceptance criteria PAYMENT OPERATIONS IN PROGRESS LIVE 01 User story in payments - follows the same format as any other domain: DONE 02 Testable acceptance criteria - criterion that says the payment is processed ACTIVE 03 Gherkin When step - states the action QUEUED 04 Exception Gherkin scenarios - scenario proves the product handles QUEUED 05 Story splitting in payments - follows the lifecycle. QUEUED 06 BA practice - Last reviewed 7 November 2026. QUEUED A criterion that says the payment is processed quickly is not testable. Step 2 of 6 Testable acceptance criteria IN PROGRESS User story in payments follows the same format as any other domain: DONE Testable acceptance criteria criterion that says the payment is processed ACTIVE Gherkin When step states the action QUEUED Exception Gherkin scenarios scenario proves the product handles QUEUED Story splitting in payments follows the lifecycle. QUEUED BA practice Last reviewed 7 November 2026. QUEUED A criterion that says the payment is processed quickly is not testable.
Gherkin When step PAYMENT OPERATIONS IN PROGRESS LIVE 01 User story in payments - follows the same format as any other domain: DONE 02 Testable acceptance criteria - criterion that says the payment is processed DONE 03 Gherkin When step - states the action ACTIVE 04 Exception Gherkin scenarios - scenario proves the product handles QUEUED 05 Story splitting in payments - follows the lifecycle. QUEUED 06 BA practice - Last reviewed 7 November 2026. QUEUED The When states the action, such as the customer sends a SEPA credit transfer of 500 euros. Step 3 of 6 Gherkin When step IN PROGRESS User story in payments follows the same format as any other domain: DONE Testable acceptance criteria criterion that says the payment is processed DONE Gherkin When step states the action ACTIVE Exception Gherkin scenarios scenario proves the product handles QUEUED Story splitting in payments follows the lifecycle. QUEUED BA practice Last reviewed 7 November 2026. QUEUED The When states the action, such as the customer sends a SEPA credit transfer of 500 euros.
Exception Gherkin scenarios PAYMENT OPERATIONS IN PROGRESS LIVE 01 User story in payments - follows the same format as any other domain: DONE 02 Testable acceptance criteria - criterion that says the payment is processed DONE 03 Gherkin When step - states the action DONE 04 Exception Gherkin scenarios - scenario proves the product handles ACTIVE 05 Story splitting in payments - follows the lifecycle. QUEUED 06 BA practice - Last reviewed 7 November 2026. QUEUED The scenario proves the product handles the exception correctly, and it proves it in a form the business, the developers and the testers all understand. Step 4 of 6 Exception Gherkin scenarios IN PROGRESS User story in payments follows the same format as any other domain: DONE Testable acceptance criteria criterion that says the payment is processed DONE Gherkin When step states the action DONE Exception Gherkin scenarios scenario proves the product handles ACTIVE Story splitting in payments follows the lifecycle. QUEUED BA practice Last reviewed 7 November 2026. QUEUED The scenario proves the product handles the exception correctly, and it proves it in a form the business, the developers and the testers all understand.
Story splitting in payments PAYMENT OPERATIONS IN PROGRESS LIVE 01 User story in payments - follows the same format as any other domain: DONE 02 Testable acceptance criteria - criterion that says the payment is processed DONE 03 Gherkin When step - states the action DONE 04 Exception Gherkin scenarios - scenario proves the product handles DONE 05 Story splitting in payments - follows the lifecycle. ACTIVE 06 BA practice - Last reviewed 7 November 2026. QUEUED Story splitting in payments follows the lifecycle. Step 5 of 6 Story splitting in payments IN PROGRESS User story in payments follows the same format as any other domain: DONE Testable acceptance criteria criterion that says the payment is processed DONE Gherkin When step states the action DONE Exception Gherkin scenarios scenario proves the product handles DONE Story splitting in payments follows the lifecycle. ACTIVE BA practice Last reviewed 7 November 2026. QUEUED Story splitting in payments follows the lifecycle.
BA practice: user story quality PAYMENT OPERATIONS COMPLETE LIVE 01 User story in payments - follows the same format as any other domain: DONE 02 Testable acceptance criteria - criterion that says the payment is processed DONE 03 Gherkin When step - states the action DONE 04 Exception Gherkin scenarios - scenario proves the product handles DONE 05 Story splitting in payments - follows the lifecycle. DONE 06 BA practice - Last reviewed 7 November 2026. ACTIVE Last reviewed 7 November 2026. Step 6 of 6 BA practice: user story quality COMPLETE User story in payments follows the same format as any other domain: DONE Testable acceptance criteria criterion that says the payment is processed DONE Gherkin When step states the action DONE Exception Gherkin scenarios scenario proves the product handles DONE Story splitting in payments follows the lifecycle. DONE BA practice Last reviewed 7 November 2026. ACTIVE Last reviewed 7 November 2026.

Key points of this lesson, in order.

0:00 / 4:05 Step 1 of 6

User stories and acceptance criteria for payments: Gherkin in practice

BA practice depth, Lesson 3 of 8, Narration 4:05, D14 Business analysis and professional practice

ReconciliationSettlementException

What you will learn

Your objective. By the end of this lesson, you will be able to explain user stories and acceptance criteria for payments: gherkin in practice and apply it to a real banking scenario.

Why it matters. For a business analyst, the user story is judged by whether a tester can test it and a customer can understand it.

Chapter objective: Gherkin, traceability, SIT and UAT design, negative testing, defect management, root cause analysis

Key learning points

  • User story in payments
  • Testable acceptance criteria
  • Gherkin When step
  • Exception Gherkin scenarios
  • Story splitting in payments
  • BA practice: user story quality

Key terms

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

Settlement: The final movement of funds between banks to discharge obligations created by cleared payments. Settlement is usually made in central bank money or through correspondent accounts.

Exception: A payment that cannot be processed normally and needs manual handling, investigation or repair. Exceptions arise from missing data, failed screening, account errors or system faults.

ISO 20022 XML explorer showing User stories and acceptance criteria for payments: Gherkin in practice.

Insights and practice scenarios

Worked insights and practice scenarios for this lesson. Each one is a reusable PaymentForge case, so the same case may appear in more than one lesson.

Practise this lesson

Exercise

Trace the payment in this lesson through its lifecycle stages.

Use the lifecycle stages in this lesson: acceptance, processing, clearing, settlement, beneficiary credit, ledger posting and reconciliation.

  1. What to do. Name each stage, state what happens, and say when the payment is truly final.

Correct result. Acceptance validates the instruction. Processing prepares it. Clearing sorts and nets it. Settlement moves the funds. Beneficiary credit puts the money in the creditor account. Ledger posting records it. Reconciliation proves it. Finality is only at settlement, not at acceptance or at status update.

Why. The lifecycle is the map of a payment. If you cannot say which stage a payment is in, you cannot answer where the money is.

Check your understanding

Practice question

Which of the following best describes user stories and acceptance criteria for payments: gherkin in practice?

Takeaway and next step

What to remember

For a business analyst, the user story is judged by whether a tester can test it and a customer can understand it.

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

Open the Payment Lifecycle Simulator →

Builds on "Writing a BRD and a functional specification for a payment product".

Transcript and full text

Show transcript

A user story in payments follows the same format as any other domain: as a role, I want a capability, so that I achieve a benefit. The role might be a corporate treasurer, a retail customer, an operations analyst, or a compliance officer. The capability might be to send a SEPA Instant payment, to see the status of a payment, or to investigate a returned payment. The benefit might be to pay a supplier on time, to know where the money is, or to resolve an exception quickly. A story without a benefit is a feature, not a story, and a feature without a benefit should not be built. Acceptance criteria in payments must be specific, because the domain is unforgiving. A criterion that says the payment is processed quickly is not testable. A criterion that says the payment is processed within 10 seconds of receipt, 99 percent of the time, and the status is updated within 1 second of each state change, is testable. The criteria must cover the happy path, the exception path, and the failure path, because a payment product that only works on the happy path is not a product. Each criterion must state the input, the expected output, and the measurement. Gherkin is the format that makes acceptance criteria executable. A Gherkin scenario has a Feature, a Scenario, and steps that start with Given, When and Then. For a payment, the Given states the starting condition, such as a customer with a balance of 1,000 euros and a beneficiary with a valid IBAN. The When states the action, such as the customer sends a SEPA credit transfer of 500 euros. The Then states the expected outcome, such as the payment is accepted, the balance is reduced to 500 euros, and a pacs.008 is sent to the clearing system. The scenario is written in plain language, but it is precise enough to automate. A Gherkin scenario for an exception is more valuable than one for the happy path. The Given states a payment that will be rejected, such as a payment to a sanctioned beneficiary. The When states the payment is submitted. The Then states the payment is rejected with reason code AC06, the customer is notified, and the payment is not sent to the clearing system. The scenario proves the product handles the exception correctly, and it proves it in a form the business, the developers and the testers all understand. The exception scenarios must cover every reason code the product can produce. The Definition of Done for a payment story includes the exception handling, the reconciliation, the audit trail, and the documentation. A story is not done when the happy path works. It is done when the happy path works, the exception path works, the reconciliation balances, the audit trail is complete, and the operations team has been trained. The Definition of Done must be written down and applied to every story, because a team that does not apply it will deliver stories that are half finished and will fail in production. Story splitting in payments follows the lifecycle. A large story about sending a cross-border payment is split into stories for initiation, for screening, for the message, for settlement, for status reporting, and for exception handling. Each split story is independently testable, and each one delivers value on its own. A split that produces stories that cannot be tested independently is a bad split, because the team cannot prove any of them work. The analyst must split by lifecycle stage, not by screen or by component. For a business analyst, the user story is judged by whether a tester can test it and a customer can understand it. The acceptance criteria must include a test where the story is read by a customer, a developer and a tester, and all three agree on what it means. Last reviewed 7 November 2026. Further reading: Gojko Adzic, Specification by Example; Matt Wynne and Aslak Hellesoy, The Cucumber Book; the International Institute of Business Analysis, A Guide to the Business Analysis Body of Knowledge; the Gherkin reference documentation.

A user story in payments follows the same format as any other domain: as a role, I want a capability, so that I achieve a benefit. The role might be a corporate treasurer, a retail customer, an operations analyst, or a compliance officer. The capability might be to send a SEPA Instant payment, to see the status of a payment, or to investigate a returned payment. The benefit might be to pay a supplier on time, to know where the money is, or to resolve an exception quickly. A story without a benefit is a feature, not a story, and a feature without a benefit should not be built.

Acceptance criteria in payments must be specific, because the domain is unforgiving. A criterion that says the payment is processed quickly is not testable. A criterion that says the payment is processed within 10 seconds of receipt, 99 percent of the time, and the status is updated within 1 second of each state change, is testable. The criteria must cover the happy path, the exception path, and the failure path, because a payment product that only works on the happy path is not a product. Each criterion must state the input, the expected output, and the measurement.

Gherkin is the format that makes acceptance criteria executable. A Gherkin scenario has a Feature, a Scenario, and steps that start with Given, When and Then. For a payment, the Given states the starting condition, such as a customer with a balance of 1,000 euros and a beneficiary with a valid IBAN. The When states the action, such as the customer sends a SEPA credit transfer of 500 euros. The Then states the expected outcome, such as the payment is accepted, the balance is reduced to 500 euros, and a pacs.008 is sent to the clearing system. The scenario is written in plain language, but it is precise enough to automate.

A Gherkin scenario for an exception is more valuable than one for the happy path. The Given states a payment that will be rejected, such as a payment to a sanctioned beneficiary. The When states the payment is submitted. The Then states the payment is rejected with reason code AC06, the customer is notified, and the payment is not sent to the clearing system. The scenario proves the product handles the exception correctly, and it proves it in a form the business, the developers and the testers all understand. The exception scenarios must cover every reason code the product can produce.

The Definition of Done for a payment story includes the exception handling, the reconciliation, the audit trail, and the documentation. A story is not done when the happy path works. It is done when the happy path works, the exception path works, the reconciliation balances, the audit trail is complete, and the operations team has been trained. The Definition of Done must be written down and applied to every story, because a team that does not apply it will deliver stories that are half finished and will fail in production.

Story splitting in payments follows the lifecycle. A large story about sending a cross-border payment is split into stories for initiation, for screening, for the message, for settlement, for status reporting, and for exception handling. Each split story is independently testable, and each one delivers value on its own. A split that produces stories that cannot be tested independently is a bad split, because the team cannot prove any of them work. The analyst must split by lifecycle stage, not by screen or by component.

For a business analyst, the user story is judged by whether a tester can test it and a customer can understand it. The acceptance criteria must include a test where the story is read by a customer, a developer and a tester, and all three agree on what it means. Last reviewed 7 November 2026. Further reading: Gojko Adzic, Specification by Example; Matt Wynne and Aslak Hellesoy, The Cucumber Book; the International Institute of Business Analysis, A Guide to the Business Analysis Body of Knowledge; the Gherkin reference documentation.

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.