· Fintech
How to Build a Payment System
Design payment systems from provider integration and licensing to ledgers, reconciliation, internal controls, AML and fraud operations.
You ask your payment provider to capture $100. It does, but the response never reaches you. Do you fulfill the order? Do you send the request again? When $97 lands in your bank account the next day, which record explains the missing $3?
Start with the flow of funds and who controls each step. Decide who handles the card, who holds funds and who can move them. Then design the provider integration, payment states, double-entry ledger and reconciliation. Test lost responses, refunds and missing bank movements before you go live. If your product provides services on behalf of other parties, establish its licensing or regulated-partner model before you build around it.
The examples cover online card acceptance, bank transfers and payouts. The regulatory sources for Türkiye, the EU/EEA, the United Kingdom and the United States were checked on December 3, 2026.
In the workflows, pay_42 traces a card capture and payout_42 traces a seller payout. Each chapter shows who makes the decision and which record goes to the next team.
Map the flow of funds
For every movement, record the payer, payee, account owner, party with authority to move the funds and evidence used for reconciliation. Who can order a transfer out of the account matters as much as whose name is on it. Add refunds, chargebacks, partial captures and rejected payouts to the same map. A movement missing from the first diagram tends to become a reconciliation break somebody has to close over email.
| Business model | Who holds the funds and contracts? | First architecture decision |
|---|---|---|
| Merchant selling its own goods | The merchant receives its sale proceeds. A bank or payment service provider (PSP) handles card acceptance. | Hosted checkout, order verification and bank reconciliation. |
| Technical gateway or orchestrator | Software passes payment instructions. The regulated party may retain the contract, control of funds and financial operations. | Check messaging, authority and fund control against both the contract and the actual flow. |
| Marketplace with sub-merchants | A customer pays and one or more sellers are owed money. The contracts assign collection, reserve and refund responsibilities. | Sub-merchant onboarding, allocation, seller payables, reserves and payouts. |
| Wallet, remittance or account service | The product may hold a balance, transmit money for others or initiate payment from an account elsewhere. | Assess permissions, safeguarding, rail access and transaction monitoring. |
A card network carries card transactions between the issuer and the acquirer under scheme rules. A PSP can give the merchant access to card acceptance and manage the acquiring relationship. A ledger records amounts owed between parties. Settlement discharges a funds obligation. Reconciliation checks whether the ledger, provider reports and bank movements agree.
Example workflow · Map the contracts to the flow of funds
The product owner is designing a marketplace that will use an authorized PSP for collection and seller payouts.
- Put the customer, seller, platform and PSP on the same map. Mark the contracting parties and accounts for acceptance, seller payables and payout instructions.
- Walk through a sale, a refund and a rejected payout. For each, identify who received the money, who can give payment instructions and which bank movement will close the balance.
- If the actual flow gives a party control the contract never assigned, bring it back to product and compliance. Proceed once the account and data boundaries are clear.
Keep the approved funds map, permissions matrix and reconciliation source for each movement.
Licensing and regulated activities
Start with the entity, customer location, service offered, accounts in the funds flow and who can control the money at each step. Include payment initiation and account information. Some services fall within regulation even when the provider never holds funds. Card scheme participation, bank sponsorship and regulatory permission are separate approvals. With a regulated partner, write down who owns the customer relationship, safeguards funds, performs compliance checks, handles disputes and authorizes payouts.

Türkiye
Article 12 of Law No. 6493 defines the payment services. Articles 14 and 18 govern authorization as a payment institution or electronic money institution. A technical service that does not control funds should be assessed against the Article 12 exclusions. Payment initiation and account information have their own provisions. Check whether the institution you plan to contract with holds permission for the specific services in the CBRT registers. Operating a payment or securities settlement system brings a separate operator regime into view. Law No. 6493 and secondary legislation · CBRT payment institutions · CBRT electronic money institutions
The CBRT guide describes three stages. Submit the Annex 11 forms and fee receipt for the initial review at the trade-registration stage. After receiving the application acknowledgment, submit Annex 15 for the background review. Written approval of that stage is followed by the final application with Annex 16. Check the current Article 11 of the regulation for each stage’s forms, deadlines and requirements for on-site review. Budget for paid-up capital, the current minimum own-funds requirement and application costs separately. Payment and e-money firms should apply MASAK’s sector guidance where their suspicious transaction reporting obligations apply. CBRT licensing stages · MASAK sector guidance
European Union and EEA
Under PSD2, a payment institution applies to the home Member State’s competent authority. The application covers the intended activities, a business plan with three years of forecast budgets, initial capital, applicable safeguarding arrangements, internal controls, security and business continuity. Account-information-only providers have a separate registration regime under Article 33. Assess issuing electronic money under EMD2 and national law, and check the notification and authorization scope for serving another EEA market. Firms in scope of DORA also need to plan for ICT risk management, incident handling, resilience testing and third-party contracts. PSD2 Articles 5, 7, 10, 28, 33 and Annex I · EMD2 · DORA
On December 3, 2026, the European Parliament’s PSD3 and PSR files showed both awaiting Parliament’s second reading. Base applications and contracts on the rules in force. Track adoption, entry into force and application dates separately for the new package. PSD3 legislative file · PSR legislative file
PSD2 Article 7 sets initial capital at €20,000, €50,000 or €125,000, depending on the services. EMD2 Article 4 sets a €350,000 initial capital requirement for electronic money institutions. Calculate ongoing own-funds and applicable safeguarding requirements separately. PSD2 Articles 7–10 · EMD2 Articles 4–7
United Kingdom
The FCA’s application route depends on the services offered. There are distinct requirements for payment institutions, electronic money institutions and account-information-only providers. Check the required authorization or registration status and the safeguarding rules that apply to your operation. The FCA’s supplementary safeguarding regime for payment and e-money firms took effect on May 7, 2026. FCA application guidance · FCA PS25/12
United States
Assess FinCEN’s federal money transmission and money services business (MSB) rules alongside each relevant state’s money transmitter licensing rules and exemptions. The federal payment processor exemption has conditions, including a formal agreement with the seller or creditor and the use of a clearance and settlement system that admits only BSA-regulated financial institutions. Where federal registration is required, register with FinCEN. State licensing depends on the activities and state law. For covered US consumer remittances, design the flow to deliver the applicable Regulation E Subpart B disclosures for fees, exchange rates and amounts delivered. FinCEN payment processing guidance · FinCEN MSB registration · CSBS state framework · CFPB Regulation E
Product and compliance should maintain one application dossier once the markets are clear. Link the list of activities, ownership and management, funds flow, capital plan, partner agreement, AML policy, information systems, outsourcing and business continuity. If the dossier says two people approve a refund, the permissions matrix, application behavior and audit record should all tell that story.
Example workflow · Scope a new regulated activity
The product team wants to collect for sellers in a new country or offer a spendable customer balance.
- Give legal and compliance the legal entity, customer location, relevant contracts, account owners and each party’s ability to move funds.
- Classify the services market by market. For regulated activities, evaluate the relevant permission or partner model. For a partner, verify the authorized services in official records and assign duties in the agreement.
- Translate the decision into onboarding, limits and launch controls. Keep the activity disabled for that market until the scope and authorization evidence are recorded.
The file links the activity analysis, application or partner evidence, approving role and transaction types enabled in production.
Payment system architecture
For one market, one PSP and a small team, a .NET API, PostgreSQL and a background worker can be enough to start. Assign ownership of payment, risk, ledger and reconciliation tables to their modules. Persist a payment instruction and its outbox record in one database transaction. Call the PSP outside that transaction. Holding database locks while a slow provider responds can turn the provider’s outage into your database outage.

- Payment API. Authorize the session and merchant. Load the charge amount from the order record. Link order, payment and attempt IDs.
- Provider adapter. Translate commands, signatures and error codes. Retain the provider account and original status. Map interoperable states into the product model.
- Inbox and outbox. Persist inbound events and outbound commands. Store stable command IDs, attempt counts and retry schedules so a restarted worker can recover its work.
- Ledger and finance operations. Record journal entries and reconciliation breaks. Give corrections, approvals and exports their own permissions.
Split a module into a service when throughput, isolation or ownership calls for it. An actual team then has to own deployments, queue delays, consistency and the pager. If you add a second PSP, record the routing decision on the payment attempt. Moving an unresolved capture to another provider can result in both providers charging the customer.
Example workflow · Persist and dispatch a payment command
The payment API receives an instruction for order_42.
- Authorize the merchant and load amount and currency from the order. Commit
pay_42and its outbox command in one PostgreSQL transaction. - A worker claims the outbox command and calls the provider with the recorded account and stable operation key. If the worker dies before saving the response, its replacement checks the provider using the stored reference and uses the same key for any permitted retry.
- Persist the verified webhook event in the inbox. Check the provider reference and applicable state transition before consuming it. Send unresolved outcomes to the status lookup workflow.
The order, attempt and provider reference form one trace. Reprocessing the same command or event preserves one local financial effect.
The card payment lifecycle
An approved card authorization can reserve funds. Capture is the merchant’s instruction to advance the authorization into collection. The transaction then goes through clearing and settlement. In single-message payment flows, authorization and capture can be part of the same operation. Map fulfillment to the confirmed state that your payment method and business accept. With asynchronous methods, a customer can return to your site while payment is still processing. Stripe payment states · Adyen payment and reporting lifecycle

Keep three states. An order can be open, fulfilled or cancelled. A payment attempt can be processing, authorized, captured or failed. The funds movement may still be waiting for a report, a bank statement or a reconciliation review. A single paid=true flag cannot explain an order that shows as refunded while the refund debit is missing from the bank statement.
Give each capture and refund its own amount and reference. Count in-flight amounts when enforcing partial capture and refund limits. A void releases an open authorization. A refund is a new financial movement linked to a captured payment. A chargeback follows a card dispute. Track the response deadline, evidence submissions and financial result on the dispute record.
Example workflow · Capture part of a card authorization
pay_43 has a $100 authorization. The merchant can ship only $60 worth of the order.
- The order service confirms the $60. The payment service checks the open authorization, currency, expiry and the provider’s partial capture rules.
- Request a $60 capture. Release the relevant fulfillment step after the provider confirms the accepted payment state. Resolve a lost response against the same capture.
- Verify how the provider releases or voids the unused $40 under its contract. When financial reporting arrives, check the $60 capture and the residual authorization separately.
Record the authorization, capture and any void references, alongside the fulfillment decision.
Payment integrations
| Connection | What goes beyond the API? | Which record closes the movement? |
|---|---|---|
| Card acceptance and digital wallets | A merchant account, token scope, 3-D Secure, authorization, capture, refunds and disputes. | Provider transaction reference → settlement batch → bank movement. |
| Domestic bank transfers | Access through a bank or participant, available payee verification, cutoffs, returns and recalls. FAST, SEPA Instant and FedNow have different participation and operating rules. | Bank or rail reference, confirmation and statement. |
| Open banking | Permissions for payment initiation and account information, access agreements, consent scope and expiry. | The payment instruction’s status from a provider query, plus a statement when funds need confirmation. |
| Cross-border payouts | Country and currency corridors, beneficiary data, FX quote, funding, sanctions checks, rejections and returns. Verify product and contract scope with networks such as Visa Direct or Ria. | Sending and delivery references, provider report and funding account. |
| Ledger, ERP and reporting | Account mappings, file contract, replay behavior, value dates and close cutoffs. | Internal ledger, provider report and bank statement. |
EMVCo 3-D Secure · CBRT FAST participants · CBRT open banking infrastructure · ECB instant payments · FedNow participants · Visa Direct account and wallet payouts · Ria partnerships
Ask for a sample settlement file while you are still negotiating the contract. Which field traces a payout back to the original capture? Do fees, reserves, refunds and chargebacks appear as separate rows? What timezone does the timestamp use? Does a regenerated file preserve row identities? Those answers determine how much work a provider migration will take after the SDK is swapped.
Use the same volume and refund mix to compare processing fees, FX costs, reserves, funds availability and operational workload. Get the supported countries, currencies, activation and test requirements in writing. Plan credentials, merchant accounts and reports separately for sandbox and live operations.
For stored cards and subscriptions, document which merchant and environment can use the token. Test customer consent, the initial transaction reference and what happens after cancellation. Visa Direct card payouts and account or wallet payouts may have different product scopes. A bank’s camt.053 statement is also an integration contract, down to its ISO 20022 version and the bank’s profile. ISO 20022 account statement message
Example workflow · Onboard a new payout provider
The integration team is opening a new beneficiary corridor with a bank or eligible provider.
- Get the country, currency, beneficiary, status, rejection and return contracts. Request sample transaction responses, a settlement file and a funding statement.
- In the sandbox, simulate delivery, a late rejection, duplicate webhooks and a late report. Record acceptance as submission and confirm delivery when the applicable evidence arrives.
- In a low-limit pilot, trace a single payout reference from the provider to the bank account. Investigate a break and resolve existing instructions before expanding the corridor.
The adapter acceptance record includes message mapping, failure behavior and an observed bank movement.
Idempotency and timeouts
Give each client command an Idempotency-Key. Make it unique within the merchant and operation type. A repeated POST /payments with the same key returns the existing payment reference. A repeat with a different amount or currency returns 409 Conflict. Compare the business fields that your server considers meaningful. Reordering JSON keys should not cause a second charge.
One possible capture contract persists the command before acknowledging it with an operation ID. Here the merchant comes from the authenticated session. The server checks the amount and currency against the open authorization. The client follows the same operation at GET /operations/cap_42.
POST /payments/pay_42/captures
Idempotency-Key: 6f7ff8dd-b80d-4f41-9d5a-ac4642965548
Content-Type: application/json
{"amount_minor":10000,"currency":"USD"}
HTTP/1.1 202 Accepted
Content-Type: application/json
{"operation_id":"cap_42","state":"pending"}
Use a separate, durable operation key for the provider call. Persist that a worker is starting an outbound attempt before it makes the call. The provider may complete the request while your application dies before storing the response. Use the provider’s key retention and status lookup to recover. Stripe API v1, for example, can prune keys after they are at least 24 hours old. Reusing a pruned key can create a new request. Check the original outcome before replaying anything past the provider’s guarantee. Stripe idempotent requests · Adyen API idempotency

Verify each webhook signature with the raw-body and timestamp rules your provider specifies. Write valid events to an inbox keyed by (environment, provider, provider_account, event_id). Return 2xx after the event has been persisted. The worker then matches the order and merchant account, checks the amount and currency, and validates the transition. A late event should not rewind current state. Query the provider object when the event leaves gaps. Stripe webhook signatures, duplicates and event ordering
One economic effect can appear in a webhook, a status response and a settlement row. Deduplicate the journal effect with business identifiers such as the payment, operation type and provider transaction reference. Two event IDs can represent the same capture. The primary database’s uniqueness and transaction boundary protect the local posting. The provider contract and reconciliation give you the evidence for what happened on the other side of the network.
Example workflow · Recover from a lost capture response
A worker sends the capture for pay_42 and receives no HTTP response.
- Set the attempt to
UNKNOWN. Hold any new capture or alternate route for the same operation while its effect is unresolved. - Query the provider using the stable original reference. Use a signed webhook or authenticated status response that the provider contract accepts as capture confirmation. Match the merchant account, amount, currency and capture reference, then post the capture journal once. Verify the bank credit separately using the settlement report and bank statement.
- If the provider confirms the command took no effect, follow the contract for a safe retry. If uncertainty persists, keep the item open with an alert and an assigned owner.
Retain the key, status and event references, decision history and any approval to release a retry.
Ledger and reconciliation
A journal entry contains debit and credit lines. Persist the entry, its lines and business identifier in the same transaction. Preserve original postings and use linked reversals or adjustments to correct them. Balance each entry in its own currency. For foreign exchange, link separately balanced currency entries with an FX quote, rounding rule and conversion reference. Use integer minor units or fixed precision for amounts. Test zero- and three-decimal currencies and the provider’s amount format.
The provider captured $100 and the bank received $97
The merchant has already booked the invoice. It collects its $100 receivable by card and the PSP deducts a $3 processing fee before paying out to the bank. Tax and refunds are outside this example.
| Event | Debit | Credit |
|---|---|---|
| Confirmed $100 capture | PSP receivable $100 | Trade receivable $100 |
| Net bank credit of $97 | Cash at bank $97 + processing fee expense $3 | PSP receivable $100 |
The first entry leaves a $100 PSP receivable. The second clears it. If the provider reported the $97 but the bank statement has yet to show it, keep an open item against the expected deposit. Manually writing off small differences every day makes a change in fees easy to miss.

- Retain the raw report under access controls. Record the provider account, date range, file ID, checksum and import version. A replayed file or row should never create another journal entry.
- Match the internal transaction to the provider row using stable references. Match the settlement batch to the bank movement in the right account and currency. Model value dates, holidays, fees, reserves and FX differences as explicit rules.
- Give unmatched items a reason, age, amount and owner. Show an operator possible matches by amount or date until stronger evidence resolves them.
- Reconcile opening and closing balances, captures, refunds, fees, reserves and bank movements at the close. Tie any adjustment to its evidence and approval. Adyen settlement and payment reporting
Example workflow · Close the first settlement batch
Finance expects a $100 capture for pay_42, a $3 fee and a $97 credit to the bank account.
- Link the capture in the ledger to the row in the provider report. Calculate the net batch total, retaining the fee and currency.
- Match the $97 to the bank movement using the correct account, value date and batch reference. Open an exception and assign an owner if the statement has not confirmed the deposit.
- Close the batch after gathering the evidence. On replay, match the same batch and row keys. If a correction is needed, post a linked adjustment with a reason.
The raw provider report, bank movement, journal entries and close time remain available together.
Marketplace case · Seller balances, payout and return
An authorized PSP provides card acceptance and payouts. The example uses the operating subledger of the PSP that holds the funds. The marketplace displays the balance and forwards approved payout instructions. There are no fees or currency conversions in this example.
The provider confirms a TRY 1,000 capture for pay_45. Once the funding has reconciled to the provider’s account, TRY 100 is allocated to the seller’s risk reserve and TRY 900 becomes available. Two independent requests for TRY 700, payout_45a and payout_45b, arrive at the same time. In this example the first request reserves the funds. The second is evaluated against TRY 200 available and receives INSUFFICIENT_AVAILABLE. The instructions have distinct operation IDs and idempotency keys. Adyen balance types
Finance tracks two amounts. One is the payable amount the seller can withdraw. The other is the cash actually available on the payout rail in that currency. Track operating liquidity, any contractual prefunding and safeguarded customer funds in separate accounts or ledger buckets. A payout can remain queued for funding even when the seller has a sufficient available balance. CBRT safeguarding rules
Instruction states and their financial effects
The states below belong to the payment system. Its adapter maps provider responses using the evidence accepted for that stage in the provider contract. A bank debit locates the cash. Confirm delivery using the evidence required for the recipient’s rail. The example clears funds in transit and the held seller payable once evidence of both debit and delivery agrees. Visa Direct’s account and wallet APIs illustrate the difference with a payout status query and a return notification linked to the original payout. Visa Direct payout queries and return notifications
| Event and evidence | Journal entry, TRY | Available / held for payout / risk reserve, TRY |
|---|---|---|
The provider’s authoritative capture record confirms pay_45 |
Debit clearing receivable 1,000. Credit pending seller payable 1,000. | 0 / 0 / 0. Funds are still pending. |
| The settlement report reconciles to the cash credit | Debit cash 1,000 and pending seller payable 1,000. Credit clearing receivable 1,000, available seller payable 900 and seller risk reserve 100. | 900 / 0 / 100 |
HELD · 700 is reserved for payout_45a |
Debit available seller payable 700. Credit seller payable held for payout 700. | 200 / 700 / 100 |
ACCEPTED · the provider acknowledges the instruction |
Update the operation state. The journal and balances stay at their current values. | 200 / 700 / 100 |
IN_TRANSIT · a bank debit of 700 is matched |
Debit funds in transit 700. Credit cash 700. | 200 / 700 / 100 |
DELIVERED · the delivery evidence matches the debit |
Debit seller payable held for payout 700. Credit funds in transit 700. | 200 / 0 / 100 |
RETURN_PENDING · the provider sends a return_45_1 notification |
Open a return record. In this example, availability waits for the bank credit. | 200 / 0 / 100 |
RETURNED · the 700 bank credit is matched to the return reference |
Debit cash 700. Credit available seller payable 700. | 900 / 0 / 100 |
If the provider conclusively rejects the instruction before cash moves, a posting releases the held amount back to available. Once cash has moved, reconcile that movement and any return before releasing funds. Link the return entry to the original payout and to its own return reference. That preserves the delivery history and lets the ledger explain why the cash came back.
Minimum data model
| Record | Relationships and fields |
|---|---|
payment and attempt |
payment stores the order, merchant, amount and currency. attempt links the payment to a provider account and payment reference. |
payout and operation |
payout holds the seller, approved beneficiary version, amount and currency. Each capture, refund or payout command has its own operation_id. Store the idempotency key and request fingerprint in the scope of the merchant and operation type. |
journal and ledger_entry |
A journal identifies its operation, type of financial effect and movement reference. Each entry has an account, debit or credit, currency and amount in minor units. A unique (merchant_id, operation_id, effect_type, movement_ref) keeps the same financial effect in one journal across evidence sources. |
settlement_line |
Store the provider account, file and row identity, amount, currency and value date. A match links the row to the operation and bank reference. |
balance_snapshot |
Track available, held-for-payout and reserve balances by merchant scope, seller and currency. Update the balance and journal together when reserving funds. |
Validate the positive amount and establish the unique operation first. In PostgreSQL, an update with available_minor >= amount_minor on the same balance row can both check and reserve the available amount. When an update affects one row, write the reservation journal, operation state and outbox record in the same transaction. If the condition fails, record insufficient funds for that request. A unique operation key makes a retry return the recorded result. Dispatch the provider call after the commit. PostgreSQL transaction isolation
Worked acceptance test
| Input | Expected result |
|---|---|
A webhook, status query and settlement line carry the same provider capture reference for pay_45 |
There is one capture journal. The actual bank credit is a separate journal. |
| Two instructions for TRY 700 target TRY 900 in available funds | Each request has its own idempotency key. Only one reserves TRY 700. The balances are 200 / 700 / 100. |
The payout_45a return notification is replayed. The bank credit arrives later. |
Available stays at TRY 200 during notification handling. The matched credit raises it to TRY 900 through one return journal. |
After the return, two refunds for pay_45 complete for TRY 60 and TRY 40. The TRY 60 event is replayed. |
Two refund journals total TRY 100. The replay leaves the count at two. Available is TRY 800 and the reserve is TRY 100 in this example. |
Check that every journal balances within its currency and that replays leave the balance unchanged at each step. Record the scenario run, evidence and observed result separately from these expected values.
Security and operations
Determine PCI scope from the data flow. Keep card numbers and verification codes in a provider-hosted form where possible. An embedded form and a redirect can have different SAQ A eligibility requirements. Confirm the applicable SAQ with the acquirer or a QSA as appropriate. Never retain card verification codes after authorization. Check that logs, error trackers, analytics and support channels do not collect card data. EMV 3-D Secure is a cardholder authentication protocol. Assess Strong Customer Authentication (SCA), exemptions and the applicable flow by market and transaction type. PCI DSS · PCI SSC SAQ A embedded payments · PCI SSC card verification codes · EMVCo 3DS · EU SCA technical standards
Tie safeguarding checks to financial records. Where safeguarding applies, design the bank and ledger separation, daily checks and exception ownership.
Measure the health of money movement. Alongside API latency, track the count and age of unresolved payments, webhook processing lag, the last complete provider report, unmatched amounts and late payouts. Segment the metrics by provider, merchant, currency and rail. Make it possible to pause new captures for one provider while keeping status checks and reconciliation running.
Scope permission checks and queries to the merchant or tenant. Restrict and audit cross-account searches from the operations console. Set retention by data category for card data, identity records and financial movements. Send correlation IDs to error trackers and test the redaction and deletion rules for credentials and personal data.
Exercise point-in-time recovery using database backups and write-ahead logs. The recovery point objective (RPO) is the acceptable window of data loss. The recovery time objective (RTO) is the target time to restore service. Include recovering missing provider events and resolving in-flight movements in your measurement. Check data residency and retention before selecting a recovery region. Manage provider keys in a secrets store with rotation. Use separate merchant accounts, credentials and data for test and live environments.
Example workflow · Contain a suspected provider credential incident
Security receives a credible sign that a PSP credential may have been used without authorization.
- The incident owner scopes the affected provider account and time window. Pause new money movements where needed. Revoke the affected key and distribute the replacement from the secrets store.
- Payment operations compares instructions in that window against provider records and the ledger. Query unclear outcomes by the original reference.
- Test the new permissions and signature verification. The incident owner approves reopening once the evidence supports it and routes any applicable notification to the responsible team.
Preserve the incident timeline, affected payments, access changes and reopening decision.
AML, fraud and internal control
A marketplace seller changes its bank account just before a payout batch. Before releasing the money, you need to know who requested the change, whether the new account was verified and which checks completed. Later, you need the evidence behind that decision and the exact instruction that reached the bank. Design team permissions, payment states and case records together so you can answer all three.
Give each team a decision it owns
| Function | Day-to-day responsibilities | Evidence it produces |
|---|---|---|
| Payments and finance operations | Run payouts, refunds, beneficiary changes, safeguarding checks and reconciliation. Separate preparation and approval of sensitive actions. | Approval chain, payment reference and reconciliation record. |
| Fraud operations | Investigate fraudulent transactions, account takeover and scams that trick an authorized customer. Request additional checks and feed confirmed fraud and dispute outcomes back to risk. | Decision rationale, case or ticket, dispute result and confirmed loss. |
| AML and sanctions compliance | Assess money laundering and terrorist financing risks. Oversee applicable KYC/KYB, sanctions and PEP screening, transaction monitoring, case review and regulatory reporting. | Customer risk profile, screening and case history, restricted filing evidence. |
| Internal control and risk management | Assess and monitor control design and operation. Sample access breaches, unresolved reconciliation breaks, aged alerts and rule changes. | Control inventory, test result, issue owner and evidence of remediation. |
| Internal audit | Provide independent assurance to the governing body. Examine the process and its controls, then check that corrective actions were completed. | Audit report, action tracking and follow-up verification. |
In this operating model, fraud and payment teams execute controls. Risk, compliance and internal control functions oversee policy and monitor the controls assigned to them. Internal audit provides independent assurance. In Türkiye, Article 26 of the CBRT regulation sets reporting lines and non-executive staffing requirements for internal control at payment and e-money institutions. Check the organizational requirements that apply to the authorized activities. IIA Three Lines Model · CBRT regulation, Articles 26–27
Assign an owner, deputy, priority and target resolution time to each queue. Staff for incoming cases, handling time, bursts and existing backlog. Fraud coverage depends on when the service moves money and how quickly losses can accrue. AML reporting calendars follow the applicable obligations and deadlines. Security can collect session and access evidence for a takeover case. Finance tracks any refund, reserve or recovery against the ledger.
Example workflow · Require independent approval of a payout account change
A seller changes its bank account while payout_42 is waiting in a batch.
- Operations records the request as a new beneficiary version, checks the seller’s authority and verifies the account. Put the payout into review.
- An independent approver reviews the account evidence and required checks. Bind the approval to the verified version.
- The worker checks the current version and approval in the transaction that claims the command. It binds dispatch to the approved account version and stable operation key. If the version changed, it requests a fresh approval. If dispatch already started, it resolves that instruction first.
Link masked account details, the version, both actors, approval time and provider reference.

Customer due diligence, screening and transaction monitoring
- KYC, KYB and beneficial ownership. Verify individuals, companies and authorized representatives as applicable. Record ultimate beneficial owners (UBOs), the purpose of the relationship and the expected activity profile as required. Use enhanced due diligence (EDD) for relationships that warrant more evidence and approval. Material changes to ownership or representation and scheduled reviews can trigger reassessment.
- Sanctions and PEP screening. Screen the customer, covered beneficial owners and relevant payment parties against the lists applicable to that business. Present potential matches with the source, list version and available secondary identifiers. Politically exposed person (PEP) status can trigger additional due diligence based on the applicable risk rules. A sanctions match may require a prohibition, asset freeze or notification under the applicable regime and decision process.
- Ongoing transaction monitoring. Evaluate payment, transfer, refund and account events in the context of the customer profile. Configure the checks required before release and the monitoring that happens after execution for each rail. Reconcile counts and totals to the ledger by currency and transaction state. Keep event and ingestion timestamps separate and flag late or missing records. Keep both scenario and event identities so replaying a time window does not create a second investigation of the same event. FATF Recommendations 6, 10, 12, 18, 20 and 21 · EBA restrictive measures guidelines
For a Turkish operation, use MASAK’s compliance program regulation to determine the duties that attach to the activity. Follow the relevant sector guidance for the filing channel, roles, deadlines and confidentiality of suspicious transaction reports. Opening an internal alert and filing a report are distinct events. Store the reporting decision and any submission evidence in a restricted case record. Give support staff an approved customer-facing status that omits the reporting details. MASAK compliance program regulation · MASAK sector reporting guides · FinCEN MSB suspicious activity reporting

Example workflow · Open a KYB file for a sub-merchant
A new seller applies for payment acceptance and payouts.
- Verify the business, its authorized representative and relevant beneficial owners against the required records. Document the expected activity profile.
- Record which parties and list versions were screened. Send possible matches and missing evidence for authorized review.
- Record the reviewer’s decision and any enhanced checks. Activate only the approved services. Reopen the profile when representation or ownership changes.
The customer record links source references, the risk profile, activation approval and reasons for reassessment.
Example workflow · Investigate an AML monitoring alert
Monitoring raises an alert for seller activity that differs from the declared profile.
- The analyst links the alert to the customer profile, scenario version and related transactions. Check whether the same event is already part of an existing case.
- Review the available documents and payment history. Close the case with a reason if the activity is explained. Escalate unresolved suspicion to the authorized compliance officer.
- The officer decides whether to file under the applicable reporting rules. Store any submission evidence in the restricted case record. Give support a status suitable for the customer.
Keep the alert and case IDs, data and rule versions, rationale, approval and any filing acknowledgment.
Make the fraud decision where money can still be stopped
Run the applicable fraud checks before sending the payment instruction. A new beneficiary account, an account security alert or unusual activity may warrant review. Policy can allow, step up, hold for review or decline the operation. For card payments, 3-D Secure helps authenticate the cardholder. Run a separate authority check for changing a payout account, with independent approval where the change warrants it. Resolve incomplete mandatory checks through the authorized workflow.
Distinguish a PSP outage from an unavailable risk service. When a required check is unresolved, hold the payment or apply the outcome specified by policy. If you allow a limited operating mode for an optional signal, set its scope, expiry and approver in advance. Once step-up or manual review completes, re-evaluate the original instruction. Send it to the provider using the stable idempotency key for the payment operation.

Example workflow · Follow a suspicious card payment into disputes
The fraud check requests additional verification for pay_44.
- The payment service marks the attempt as pending step-up or analyst review. An unavailable mandatory check leads to a policy-approved hold or decline.
- Re-evaluate the same attempt once the check completes. Submit capture only from the permitted state. Link the fraud decision to that attempt.
- If a cardholder later disputes the charge, operations links it to the payment. Record the reason, response deadline, evidence and any loss or recovery.
Keep fraud and dispute outcomes separately. Send confirmed outcomes back to risk evaluation and finance.
Keep enough evidence to reconstruct the decision
A single payment attempt can have multiple evaluations. A risk_decision entry can carry the payment attempt, policy and list versions, reason, timestamp and provider reference. An aml_alert links events to a scenario version. An aml_case can collect several alerts and record the assignee, evidence, escalation and disposition. Keep identity documents and filing evidence in a restricted store. Publish reference IDs and appropriately scoped statuses to the general event stream.
Assign roles for requesting, approving and deploying a rule change. A person who changes a payout beneficiary should need independent approval to authorize the change or release a related high-risk payment. Preserve previous entries and reasons when correcting the ledger or case file. The audit trail needs the actor, role, before and after values, timestamp, approval and payment or case ID.
Track approval rates, manual reviews, confirmed losses and chargebacks by channel for fraud. Disputes can arrive later, so compare cohorts at a similar stage of maturity. For AML, measure event coverage, time since the last list refresh, alert age, sample review defects and reporting timeliness. If closed-alert counts rise, sample the closure rationale and evidence before drawing a conclusion about quality.
Example workflow · Close a control sample with evidence
Internal control samples beneficiary changes and fraud rule approvals from the period.
- Pull deployed policy versions and beneficiary versions from the payment records. Verify the identities of the requester and approver and the sequence of events for the sample.
- For a gap, record the affected operations, remediation owner and due date. Pause affected releases where the finding warrants it.
- Repeat the same scenario after the fix. Internal control records the result. Internal audit provides independent assurance under its audit plan.
Retain the control ID, sampled records, observed results, remediation and retest evidence.
AML and fraud provider options
Evaluate Fineksus PayGate by module. Inspector screens customers and payment parties against watchlists. Fineksus documents name, PEP and sanctions queries in the Inspector REST API. Analyzer provides transaction monitoring based on customer behavior. PayGate KYC supports customer risk rating and profiling. For a name-screening purchase, check separately which modules and terms cover monitoring, case management, hosting location and reporting workflows. Fineksus PayGate AML products · Fineksus Inspector API
| Requirement | What to make the provider demonstrate | Product and service examples |
|---|---|---|
| AML screening, monitoring and case workflow | Reproduce a match using the recorded list version. Generate an alert from a transaction history and export the resulting case and disposition. | Sanction Scanner · ComplyAdvantage Mesh |
| Sanctions and PEP data | Verify the relevant official sources, list freshness and treatment of names with Turkish characters and secondary identifiers. | LSEG World-Check One · UN consolidated list · MASAK domestic freezing decisions · OFAC lists |
| Identity, business and beneficial owner verification | Check country and registry coverage, evidence, manual review and retention. | Sumsub KYB |
| Fraud inside the PSP | Trace decisions to payments and events. Check review and 3DS options under the plan you will use. | Stripe Radar · Adyen Protect |
| Independent fraud decisioning and signals | Carry decision evidence across PSPs. Exercise missing device signals and a failed API call. | Feedzai Transaction Fraud · SEON Device Intelligence |
| Card disputes and early alerts | Correlate an alert to the order, refund or dispute and trace the response deadline and journal movement. | Stripe Disputes · Mastercard Ethoca Alerts |
| Internal control and audit evidence | Track the control inventory, findings and remediation evidence. Correlate cloud API changes with application decisions. | ServiceNow IRM · AWS CloudTrail · Amazon S3 Object Lock |
Test candidates on the same synthetic or appropriately anonymized cases. Record results for similar names, a fresh list version, late and duplicate events, incomplete attributes, service failure and case exports. Compare coverage, false alerts and missed cases. For online fraud, also measure decision latency and the effect on approvals. Include license and data fees, analyst workload and the cost of leaving the integration.
Put hosting locations, subprocessors, list sourcing and refresh, incident notification, audit access and exports in the contract. Managing your own entity, event and decision references gives you a way to recover open cases and their original evidence when you change providers.
Example workflow · Evaluate AML providers with a common case set
Procurement and compliance need name screening, transaction monitoring and case management.
- Ask each candidate to map requirements to modules and contract terms. On a Fineksus evaluation, design separate acceptance scenarios for Inspector screening and Analyzer monitoring.
- Use the same synthetic profiles, transactions and cases across candidates. Define expected results for list refreshes, similar names, replay and service outages before testing.
- Have compliance check case reasons, engineering check APIs and exports, and internal control check permissions and version evidence. Record coverage gaps in the contract and pilot plan.
The acceptance matrix records the dataset, product version, observations, owner, open gaps and records that must remain portable.
Production readiness
Test the lost reply and the deposit that reaches the bank as carefully as the happy-path payment. Record what you verified in a sandbox separately from the transactions, reports and bank movements observed in a controlled live pilot.
| Test | Expected acceptance evidence |
|---|---|
| Concurrent duplicate requests, redelivered webhooks and reordered events | One economic effect, one journal entry and the correct final state. |
| Connection drops after the provider processes the command | The operation stays unresolved until authoritative provider evidence arrives. A new charge remains on hold. The settlement report and bank statement confirm the bank credit separately. |
| Partial capture, two refunds and an open chargeback | Amount limits hold. Each event and journal movement can be traced. |
| A report is missing, corrected or replayed | Operations receives the exception. Replay creates no duplicate postings. |
| Database failover, restore and key rotation | RPO and RTO are measured. Two primaries cannot write concurrently. In-flight operations recover safely. |
| Sanctions match, AML alert and case closure | The list version and decision rationale can be recovered. Filing permissions and confidentiality hold. |
| Fraud provider outage and a beneficiary change | A mandatory check blocks release until resolved. Independent approval and one financial effect after retry are verified. |
| A low-limit live pilot | Capture, refund, settlement report and bank movement can be followed through the same reference chain. |
Wait for the first live settlement report and bank statement before increasing volume. Support should find the order, payment operations should find the provider reference and finance should find the corresponding movement in the bank account. When you close the pilot, record who approved it, how much reconciled and who owns any remaining break.
Example workflow · Decide whether to lift the pilot limits
Technical checks have passed. Finance, risk and payment operations monitor the first limited live batch.
- Record the approvers, payment and refund scenarios, review date and criteria for pausing the pilot.
- Trace a live capture and refund. Match the ledger, PSP settlement report and bank movement. Tie the risk decision and any review case to the same transaction chain.
- When the evidence is complete and signed off, increase traffic within the approved limits. For a missing movement or broken control, pause new traffic, reconcile in-flight items and define the conditions for restarting the pilot.
The pilot close records the release version, scope, reconciled movements, approvals and owner of any open exception.

Frequently asked questions
Do I need a license to accept cards on my website?
A merchant taking payment for its own goods or services through a bank or authorized PSP generally acts as the merchant in that flow. Accepting funds for other sellers, holding balances or initiating payments for others calls for a separate activity review. CBRT payment services · PSD2 Annex I
What is the difference between a payment institution and an electronic money institution?
A payment institution can provide the payment services within its authorization. An electronic money institution can issue electronic money and provide the payment services its permissions cover. The legal status of a balance displayed by the app depends on how the funds are received and can be used. Law No. 6493 · EMD2 Article 2
What should a marketplace check when it uses a regulated partner?
Check the customer and seller contracts, the collection account, who controls funds and who can authorize refunds and payouts. Map the partner’s permissions and the services your own company provides in each market.
Can I fulfill an order when the provider returns HTTP 200?
Read the payment status. Fulfill once the method reaches the business state you accept, after checking the merchant account and amount. Track deposits through settlement reporting and bank statements. Stripe payment states
Can I switch PSPs after a timeout?
An unresolved capture can create a second charge if you submit it to another PSP. Check the first provider’s status API, webhook evidence and settlement report. Record proof the first instruction had no financial effect before initiating a new attempt.
Why do I need status lookups and reports if I have webhooks?
Webhooks provide timely events. A status lookup helps recover missing or disordered events. Settlement reports carry captures, fees, refunds and batch totals. The bank statement independently confirms cash movement. Stripe webhook behavior · Adyen reports
Does hosted checkout remove all PCI DSS obligations?
Hosted checkout can reduce scope. Eligibility depends on the merchant’s integration, how card data moves and the acquirer’s validation requirements. For an embedded form, check the PCI SSC script security criteria. PCI SSC SAQ A
When does reconciliation need a dedicated ledger?
A single merchant with simple sales can start with accounting records, PSP reports and bank statements. For seller balances, partial refunds, reserves or multiple currencies, build a transaction-level double-entry subledger and verify that replaying a movement leaves the balance unchanged.
Can I connect to FAST, SEPA Instant or FedNow with just an API key?
Access depends on the rail’s participation requirements and connection model. Businesses typically access the service through a bank, sponsor or eligible provider. Check the contract for status reporting, returns and financial statements. FAST participants · ECB instant payments · FedNow participants
Do I need a message broker or microservices on day one?
A .NET application with a persistent PostgreSQL outbox and a worker can be a sufficient starting point. Separate components when you need independent scaling, deployment isolation or separate ownership. Test recovery by killing the worker during a provider call and restarting it.
Are passing sandbox tests enough to go live?
Sandbox tests cover the integration contract and simulated failures. Use a low-limit live pilot to verify that actual bank movements match the provider reports. Keep the live test scope and evidence separate.
How is a payout integration different from payment acceptance?
Payment acceptance handles funds coming from a customer to a merchant. Payouts send funds to an eligible beneficiary. They need their own records for beneficiary verification, funding, delivery status, rejects and returns.
Do I still need an AML function if I have a fraud engine?
A fraud engine helps decide whether to proceed with a payment. Depending on your activities and jurisdictions, AML obligations may require customer due diligence, sanctions screening, risk-based monitoring and authorized reporting workflows. Map each capability and responsible party in the vendor agreement and operating model. FATF recommendations
What does Fineksus Inspector cover compared with Analyzer?
Inspector screens customer and payment parties against watchlists. Analyzer applies monitoring scenarios to customer transactions and behavior. Give each capability its own acceptance test. Fineksus PayGate AML products
Does an AML alert stop the payment?
An alert starts a review. A hold, rejection or freeze depends on the alert type, applicable law and authorized policy. Resolve sanctions matches through the designated escalation and approval process. EBA restrictive measures guidelines
Does PEP status have the same payment consequences as a sanctions match?
PEP status can prompt a risk assessment and further due diligence. For a potential sanctions match, confirm the identity using available evidence and determine any restrictions under the applicable regime. FATF Recommendations 6 and 12
Who can change a fraud or AML rule in production?
Assign a requester, implementer and independent approver. Keep the active version, activation time, test evidence and approval. Internal control samples these records and internal audit provides independent assurance. IIA Three Lines Model
How should a payment proceed during a risk-provider outage?
Identify which checks are mandatory for the operation. When a required check is incomplete, hold or decline according to policy. When service returns, re-evaluate the durable instruction using the same operation identity.
Example workflow · Route a payment support ticket to the right owner
Support receives a question about the state of a payment.
- Find the attempt with the authorized merchant and order reference. Show order, capture and settlement status separately.
- For an uncertain charge, follow capture recovery. For a difference between the provider report and the bank, open the reconciliation workflow. Route fraud disputes and AML cases within their restricted permissions.
- Give the customer a shareable status and the next update time. Keep evidence and approvals with the operational owner.
The ticket, operational owner and visible status stay linked to the order reference.
Related article · How payments and payment jobs are changing in Türkiye