CIIFragments Studio is CII-accredited: recover up to 20% of your software development spendLearn more
Integrations · Online payments

Integration of an online payment API

Collection unlocks the service, not an internal ticket

Our team wires your payment provider into the product: entitlements, subscriptions, payouts, disputes. Checkout is only the start of the flow.

  • Payment connectors in production
  • flow model scoped
  • idempotent webhooks
In short

What is an online payment API and when should you have it integrated?

An online payment API lets your application trigger a collection, follow its outcome and react to what happens next: a failed payment, a refund, a dispute. Off-the-shelf modules cover a simple sale. You have a custom integration built when money moves between several parties, when billing follows a cycle with trials, tiers and proration, or when collection must open rights in your product and land cleanly in accounting.

The friction

What the payment provider does not do on its own

The checkout module collects money. The rest (rights, payouts, books) still has to be built in your application.

I do not know who paid for what

What we do

We attach every collection to its invoice and its customer in your tool, with a reference carried end to end rather than a guessed reconciliation.

End-to-end referenceAutomatic reconciliationGaps surfaced

A customer pays and still has no access

What we do

The payment event opens rights immediately, and a failed payment restricts them. No more manual step between settlement and the service delivered.

Access opened on paymentFailed payment accounted forZero manual step

Payouts to sellers are a headache

What we do

We wire the split and the fee as the money moves, with edge cases handled: cancelled order, partial refund, seller balance too low.

Fee taken in the flowCancellation cases handledPayout ledger

My accounting never adds up

What we do

Collections, fees, refunds and charges are pushed with the right split into your accounting, and a periodic check flags any gap.

Accounting splitConsistency checkAlert on a gap
The tools in detail

What each solution actually involves

GoCardless

SEPA Direct Debit

SEPA Direct Debit, a fit for B2B subscriptions and instalment plans where card fees become hard to justify. The integration topic is the mandate lifecycle and how rejections are handled, not the transaction: a rejected debit must trigger an action, not silence.

  • Mandates and schedules driven
  • Cost suited to high amounts
  • Rejections treated as a nominal case
Read the page

Mollie

European option

The European option, useful when your markets expect their local payment methods and an international catalogue is not enough. The integration is judged on the real coverage of the methods you need, market by market, rather than on the length of the announced catalogue.

  • Local payment methods
  • Coverage to check market by market
  • A credible alternative in Europe
Read the page

PayPal

Buyer reflex

A payment method your buyers recognise, which weighs on conversion in consumer sales. It is most often added to a primary provider rather than replacing it, and the integration is then designed as a second flow to reconcile, not as a second system.

  • Purchase reflex on the buyer side
  • Comes as a complement to a primary provider
  • A flow to reconcile with the rest
Read the page

Stripe

The most complete

The most complete platform, and the one that goes furthest when money moves between several parties or when billing follows a cycle. In return, the structural decisions are taken early: who owns disputes, who pays the fees, which flow model. Changing them later costs a full rewrite.

  • Marketplaces and fees in the flow
  • Subscriptions, trials and proration handled
  • Test clocks to simulate the future
Read the page

SumUp

In-person sales

In-person collection, on a terminal, when the sale closes in a shop, on a round or on a site. The integration challenge is not the payment itself but its return into your business software, so a field sale exists on the same footing as an online sale.

  • Face-to-face collection
  • Field sales pushed into the tool
  • Same treatment as online sales
Read the page
Use cases

Four flow architectures we wire

01

Invoice state, product state

Trial, tier, proration and failed payment become business states. Features open and close without a dashboard kept by hand.

02

Marketplace at capture

Commission and seller shares are computed in the flow, including partial refunds and insufficient balance, not as a month-end recharge.

03

Internal multi-provider layer

Stripe, a card complement, a direct debit: one payment model in the product. Adding a method does not duplicate billing.

04

Failed-payment sequence in the app

Failure, reminder, restriction: dunning lives in the product. Collections become a measurable queue, not a mailbox.

For you

Who gains, and what we decide with you

We do not pick a provider in the abstract. We scope the flow model with product, finance and ops.

Product treats access as a state

Product and CS stop unlocking accounts by hand. We make the payment event the source of entitlement.

Finance reads three amounts, not a net

Collected, paid out, taken as fees: the CFO and the accountant see the split. We push it as-is into the books.

Marketplace ops stop arbitrating by hand

Cancellation, dispute, seller balance: edge cases are rules, not tickets. We write them with you at scoping.

Collections leave the inbox

Each failure has an age, an owner, a next action. We wire that queue to the provider, not the other way around.

Method

The method a payment flow forces

01

Flow model

Sale, subscription or marketplace. Merchant, disputes, fees: decided before code.

Deliverable: flow model map
02

Idempotency and 3DS

Idempotency, isolated secrets, 3DS path designed in the tunnel.

Deliverable: idempotency contract
03

Webhook acceptance

Signature, queue, out-of-order replay. Decline, refund, dispute before cutover.

Deliverable: replayable webhook suite
04

Dispute operations

Dispute, representment, reversing entry: the flow lives after capture.

Deliverable: dispute runbook
Good to know

What nobody tells you before you sign

01

A poorly handled webhook costs money

With most providers, the outcome of a payment arrives as an event. If your server does not respond correctly, you do not lose a message: you lose the trace of a collection, and sometimes you delay an entire billing cycle.

02

Events arrive out of order and twice

No serious provider guarantees delivery order. Logic that assumes a sequence is wrong by construction: you must deduplicate, and reread the object concerned when an event arrives early.

03

Strong customer authentication breaks overly optimistic journeys

A share of payments asks the cardholder for an extra confirmation. This is not an error to recover from, it is a step to design into the journey, or you ship with an unexplained failure rate.

04

Changing the flow model costs a full rewrite

Who appears as the merchant, who owns disputes, who pays the fees: these choices structure the code and the accounting. They are settled during scoping, with your finance team, not six months later.

Our expertise

What we measure on a payment project

12 d
your first payment live in production, marketplaces aside
100 %
of webhooks signature-verified: no phantom payment
0
double charge, even if the webhook is replayed ten times
D+1
your payouts reconciled, with no manual matching
FAQ

Online payment API integration: your questions

Three steps. First choose the flow model: a simple sale, a subscription, or money moving between several parties. Then build the connector on the server side, with an idempotency key on every create so a replay never produces a second payment, and secrets isolated from application code. Finally handle events correctly: verify the signature, respond immediately, do the work in a queue, deduplicate. The sensitive part is never the payment call, it is what happens after: failed payment, refund, dispute, and the return of all of that into accounting.

It depends on the flow model far more than on the provider you pick. A simple collection with an email confirmation costs far less than a subscription with tiers and proration, and far less still than a marketplace where money is split across several sellers. The real cost hides in the edge cases: an order cancelled after payout, a partial refund, a dispute opened two months later, a gap between the provider and accounting. We scope the perimeter up front and give a firm estimate.

It is decided on three criteria, in that order. The business model first: a simple sale, a subscription, or payouts to third parties, the last of which sharply reduces the number of credible options. The payment methods your customers expect next, which depend on your markets and on whether buyers are consumers or businesses. Cost last, looking at average amount and recurrence rather than the advertised percentage: on high B2B invoices, direct debit beats the card. Tell us your model, we will tell you what it implies.

Yes, and it is common: a primary provider, a complementary method for conversion, sometimes a direct debit for subscriptions. The difficulty is not wiring them up, it is keeping a single truth on the product side. We put an internal payment model that is independent of the provider, where every incoming flow is normalised before it reaches your business logic. Without that layer, each extra payment method duplicates billing and accounting logic, and the gaps start.

By pushing the flows with the right split rather than a net amount. A collection, the provider fee, a possible payout to a third party and a refund are four different entries, and aggregating them loses the information at the moment the accountant needs it. We build the flow into your accounting tool, then a periodic consistency check between what the provider exposes and what accounting records, with an alert on a gap rather than a silent correction. An entry is not repaired behind the accountant's back.

What is your flow model?

Simple sale, subscription or marketplace: 30 minutes to pin it down, and to tell you what it implies for the provider, 3DS and the books.

Discuss my payment project
Discuss my payment project