How We Implemented Payment Processing Integration for a Fintech Application
Last Updated on October 9, 2026
Quick Summary
This insight looks at a US fintech application where checkout was working, but the finance team still had to reconcile payments manually. Bacancy Technology rebuilt the payment layer around a ledger-first framework, covering payment states, webhooks, refunds, reconciliation, and PCI DSS requirements. Manual reconciliation effort fell by 60%. It shows how a ledger-first approach can make payment processing integration more reliable, traceable, and easier to reconcile.
Table of Contents
Introduction
Many fintech teams treat payments as an integration task: choose a provider, connect it, and release. The card data standards have made that scope too narrow. According to the PCI Security Standards Council, 51 of the 64 new requirements in PCI DSS v4.0 became mandatory on March 31, 2025, after being classified as future-dated best practices since 2022. Fintech applications that store, process, or transmit cardholder data must meet the applicable PCI DSS requirements.
For a fintech executive, this extends payment processing integration well beyond connecting a provider. The connection is the visible part. The questions that follow are harder: which system acts as the system of record for payments, who reconciles it, and what evidence is available when an assessor asks.
Our client had a fintech application operating in the US with a working checkout. Its finance operations team, however, was still reconciling payments by hand, because payments were accepted but never matched against settlements. The first processor had been connected quickly, and nobody had decided which system should act as the system of record for money movement.
The usual payment gateway integration process ends at the first successful test transaction. In this payment processing integration, we began at the other end, with the ledger. This article explains why that order mattered.
Where the Existing Payment Flow Was Failing
The checkout functioned correctly. The deficiencies lay in what followed it, and they appeared in three places.
The first processor was wired directly into the product. Payment status was held in whichever service had heard from the processor most recently, so two screens could give different answers about the same transaction.
Settlement files arrived on the processor’s schedule, and people matched them to orders manually. Each refund, chargeback, and partial capture added another exception, and that list belonged to the finance operations team, not to engineering.
PCI scope was set once at launch and wasn’t reviewed as the product changed. This is a particular risk on payment pages, because script security and tamper detection controls drift when a checkout page is edited often.
The processor performed as expected. What the existing payment processing integration lacked was a record of its own between the checkout and the processor.
The Ledger-First Framework for Payment Processing Integration
We worked outward from the ledger, with checkout coming last. In a fintech product, the ledger is the system of record of what happens to each payment. We built the system in four steps, with each one shaping the next.
1. Define the Ledger Before the Connector
We began with the ledger itself before choosing any processor. Each authorisation, capture, refund, chargeback, and payout was logged with its own set of states. Processors fed the ledger. The product read from it. No other service could record that money had moved. The states had to be agreed early, because the rest of the build was written against them.
2. Put a Processor Layer Between the Product and the Provider
The processor was attached to a small adapter whose only task was translation. Whatever the provider chose to call an event, the adapter mapped it to the ledger’s own terminology, and the product code never included provider-specific language. Adding a second processor (or replacing the first) meant writing one adapter and leaving the product unchanged.
3. Expect Failures Early On
We did not stop at what happens when a payment succeeds. We also worked through a processor timeout, a webhook arriving twice, a rejected retry, and a partially captured payment. For each scenario, we specified how the ledger should be updated, what should happen next, and who would own the follow-up. Settling these rules during development meant the decisions were not being made for the first time in production.
4. Produce Compliance Evidence as a By-Product
Tokenization kept card data out of most systems, which narrowed PCI scope. The logs and change records an assessor would request came out of the ledger as the system ran, so nobody had to compile an evidence pack shortly before a PCI DSS v4.0.1 audit.
Building the Payment Layer Around a Ledger?
Get fintech integration services that connect payment processors to a ledger-based system of record from the first release.
How the New Payment Flow Works
In the rebuilt payment processing integration, the product asked the ledger about a payment, the ledger answered, and the processors reported in. This payment processing architecture kept every decision about money in one place.
A payment moved through several states. Authorization, capture, refund, chargeback, and payout each changed its status, and the ledger defined which transitions were valid. Anything outside those transitions was rejected at the ledger instead of surfacing later as a mismatch for the finance operations team.
Payment webhooks were treated as claims. A processor’s message described what the processor believed had happened, so each one was verified, matched to an existing payment, and applied only if the transition was valid. A duplicate webhook was recognized and ignored. Partial captures and refunds were recorded as their own ledger events, each with an owner.
Reconciliation, Security, and PCI DSS v4.0.1
Reconciliation, risk screening, and PCI evidence normally belong to different teams. We designed them together within the payment processing integration because all three read from the same system of record.
Reconciliation with a Single Record
Because settlement files and ledger entries often arrive in different formats and at different times, the team standardized the records before comparing them. Once the formats were aligned, settlement data could be compared against a single ledger instead of searched across several services, and anything that did not match appeared as an exception with an assigned owner. As the number of sources grows, AI data integration can take over more of the format alignment and leave the team to review only the exceptions.
Risk Screening at Authorization
We placed screening at authorization, because stopping a high-risk transaction before capture is considerably simpler than reversing it afterward. The check can be a small set of rules or a scoring model used in AI fraud detection to identify unusual transaction patterns, and the placement stays the same. Where it ran in the flow mattered more than how sophisticated the check was.
Tokenization and PCI Evidence
Tokenization narrows PCI scope, but it does not remove the need for evidence. The payment page is where this is most visible. PCI DSS v4.0.1 includes two requirements that are particularly relevant to payment pages. Requirement 6.4.3 covers the management and authorization of payment-page scripts, while Requirement 11.6.1 addresses detecting unauthorized changes to the page.
These controls matter because attackers can tamper with checkout scripts to steal card details as customers enter them. This is known as e-skimming. A payment page can still look and work normally even when a malicious script has been added, so a successful checkout alone doesn’t prove the page is secure.
For this implementation, we needed clear ownership of these checks. Someone had to be responsible for knowing which scripts were approved and for responding if the page changed unexpectedly. Without that ownership, the task could fall between engineering and security.
Testing and Go-Live for Payment Processing Integration
We tested against the ledger instead of judging the integration by whether the checkout page loaded. The failure scenarios described earlier became the test plan. Each one had an expected ledger outcome, and a test either produced that outcome or did not. Reconciliation was tested the same way, using settlement data before live transaction volume depended on it.
Go-live depended on checking whether settlement data matched the ledger entries. The team verified that completed payments appeared correctly in the settlement data and could be reconciled against the ledger, rather than relying on a successful checkout test alone.
Building a Fintech Product That Handles Payments?
Bacancy Technology provides fintech app development services, with tokenization, payment failure handling, and PCI DSS v4.0.1 requirements considered from the early stages of development.
What Changed, and What Leadership Should Decide Differently
No single headline number describes the result of the payments processing integration. The change was one of responsibility, and the table shows where it moved.
Before vs. After
Area
Before
After
Payment status
Held in several services; screens could disagree
Read from one ledger
Settlement matching
Done manually against settlement files
Settlement events compared with ledger entries. 60% less manual effort
Processor logic
Spread through the product
One adapter per processor
Failure handling
Addressed as cases appeared
Defined in advance, with owners
PCI evidence
Compiled before assessments
Produced from ledger logs and change records
The finance operations team noticed the difference first. A refund or chargeback that previously appeared as a mismatch to investigate now arrived as a ledger event with an owner already assigned. For engineering, the difference showed in processor work: a second provider required one more adapter against the same ledger states, and the product code stayed untouched.
What Leadership Should Decide Differently
Integrated payment processing needs product, finance, and technical teams to agree on where payment data is held and who is responsible for them. These considerations should be part of fintech software development strategy, including the choice of payment processor, rather than being left until implementation is underway.
Who owns the ledger?
Assign a single owner. If the finance operations team and product each assume the other maintains the system of record, reconciliation becomes a recurring dispute.
What does leaving the first processor costs?
Settle the switching cost early. With an adapter layer, replacing a processor is a bounded project. Without one, it is a product rewrite, and vendor pricing tends to reflect that dependency.
Which standard sets the evidence bar?
State the security standard as PCI DSS v4.0.1, determine the components that will be covered, and identify who has the authority to sign off on the assessment.
Conclusion
The order of implementation made a difference in this project. We started with the ledger, added the processor layer, and worked through failure scenarios before connecting the payment provider. That gave the application a consistent record of payment activity and made it easier to reconcile settlements or change processors without rewriting the product.
Payment handling involves more than getting checkout to work. Our team at Bacancy Technology brings fintech experience to these decisions, including tokenization, failure handling, and applicable PCI DSS v4.0.1 requirements. Our fintech consulting services help businesses that need to evaluate their architecture, processor options, or reconciliation setup.
Before going live, teams should check three things: what happens when a payment fails, whether settlement records match the ledger, and how difficult it would be to switch processors. If any of the three is unanswered, resolve it before launch, starting with who owns the ledger.
It is the connection between an application and a payment processor, together with the controls that confirm what the processor reports. That covers how each payment moves from authorization to settlement, how refunds and disputes are handled, and how the business keeps an audit trail. In practice, the gateway connection is only one part of the work.
A payment gateway integration covers the requests that authorize a payment. Whereas Integrated payment processing continues after authorization, handling refunds, disputes, and settlement. Finance and compliance teams need the resulting records to be complete enough to answer audit questions.
Anyone who knows a callback address can send a request to it, and processors may send the same message more than once. Verifying each webhook and matching it to a known transaction keeps incorrect or duplicate entries out of the ledger.
PCI DSS v4.0.1 sets security requirements for environments that handle card data. Its future-dated requirements became mandatory on March 31, 2025. Requirements 6.4.3 and 11.6.1 cover payment-page scripts and the detection of unauthorized changes to those pages. Which requirements apply depends on the payment arrangement and the validation process. Tokenization does not remove PCI DSS obligations, but it can reduce the number of systems in scope.
One named person or team, typically in finance operations with engineering support for technical issues. When ownership is unclear, a mismatch can stay unresolved because each team assumes the other is handling it. The owner should be the person who investigates discrepancies and is accountable for resolving them.
Hiral Pandya
Lead Software Engineer at Bacancy
DevOps leader optimizing cloud infrastructure and driving scalable engineering innovation.