How do you add payments to a web app without handling card data?
The basic flow from checkout to confirmed payment
Most web payment flows follow the same path, whichever processor you choose. Understanding the path helps you judge a builder’s plan and spot the step that is missing.
- Your app creates a payment record with the amount, currency and what the customer is buying.
- The customer pays on a checkout page or payment form that the processor hosts or controls.
- The processor tries the payment and reports the result, usually by sending a webhook message to an address in your app.
- Your app checks that the webhook really came from the processor, updates the order, and sends the receipt.
- The browser may also return to a success page, but that page is only a convenience. It is not proof that the money arrived.
Why you should not store card numbers
Card numbers are the most sensitive data a business touches. The card networks set security standards for anyone who stores, processes or transmits them, known as PCI DSS. Each system that touches card data adds work and risk, so most teams avoid it entirely.
Instead, the processor gives your app a token, a reference that stands for the card. Your database keeps the token, the amount and the status, and never the full card number. Ask a builder to confirm in writing that card data never reaches your servers, your logs or your analytics tools.
Webhooks and reconciliation: the step many builds skip
Webhooks are how the processor tells your app what happened after the customer left the page. They can arrive late, arrive twice or arrive out of order, so the handler must be safe to run more than once. Check each event’s signature against the processor’s documentation before you trust it.
Reconciliation means comparing your records with the processor’s records, usually once a day. It catches the payment that succeeded while your app was down, the refund that was never recorded, and the amount that differs by a fee or currency rounding. Ask who will look at the reconciliation report, and what happens to a mismatch.
Subscriptions, refunds and disputes
For recurring billing, many processors store the subscription and charge the card on schedule, so your app mainly listens for the outcome of each charge. Decide what happens when a renewal fails: how many retries, when access stops, and how the customer is told. Those rules belong in the written scope, not in a developer’s head.
Refunds and disputes also run through the processor. A refund should be started from your admin screen through the processor’s interface, and the app should store the refund event when it arrives. A dispute, sometimes called a chargeback, is when the cardholder asks the bank to reverse a payment. Your app needs a way to flag it and a person to answer it.
Choosing a processor and what to confirm
Choose the processor on the things that affect your customers: the countries you sell in, the currencies you charge, the payment methods shoppers expect, and where your settlement money is paid out. Some international processors serve many countries, while local gateways often support the payment methods that people in one market use every day.
Read each provider’s current pricing and supported-countries pages, because fees and coverage change. Ask your builder to test a real payment in the processor’s test mode, a failed payment, a refund and a renewal failure before you launch. A passing test on the happy path alone proves very little.
How Hundred Seas helps
Hundred Seas is a product studio in Taipei. We build web apps, internal tools and AI CRM systems, and we connect them to the payment, invoicing and booking tools a business already uses. We work in English, Traditional Chinese and Simplified Chinese, so checkout text and customer emails can match the markets you sell in.
Every engagement starts with a scope step of about one week at a fixed price, ending in a written plan and a firm quote. The build then ships working software every week, and a monthly run plan keeps payments, webhooks and reconciliation running after launch.
Questions
- Is it safe to take card payments directly in my own app?
- It can be, if you use a hosted checkout or a payment form supplied by the processor so that card data never reaches your servers. Taking card numbers directly into your own form brings the full weight of card security standards onto your systems. Most businesses should avoid that path.
- Why do I need webhooks if the customer sees a success page?
- The success page only shows the customer’s browser where it was sent. The browser can close early, lose its connection or be altered. The webhook is the processor’s own confirmation, so it is the reliable signal that an order should be marked paid and fulfilled.
- What is reconciliation, and who should do it?
- Reconciliation compares the payments and refunds in your system with the processor’s reports, and explains any difference. A finance lead or bookkeeper should review it regularly, with the developer available to fix any recording error. Automated reports help, but a person should still sign off on the totals.
- Can I start with one processor and add another later?
- Yes, but plan for it early. Keep payment code behind one internal module, store the processor’s reference for each payment, and avoid tying your order records to one provider’s internal identifiers. That makes a later switch or a second gateway a contained task rather than a rewrite.