What Is a Payment API, and How Does It Work?
Payment API meaning, the calls Stripe, Adyen and PayPal share, a sample request, integration types and their PCI SAQ, keys, idempotency and Open Banking.
Article summary
TL;DR
A payment API is a set of web endpoints that lets a website or app take payments through a provider such as Stripe, Adyen or PayPal. Your server sends requests to create, confirm, capture and refund a payment, signed with a secret key. The provider answers each call, then reports final results through webhooks.
- Every card payment API follows the same lifecycle: create the payment, confirm or authorize it, capture the funds, refund if needed. Only the names change between Stripe, Adyen and PayPal.
- How you collect card details decides your PCI questionnaire: a redirect or a provider iframe can qualify for SAQ A, your own form posting to the provider is SAQ A-EP, card numbers on your servers means SAQ D.
- Send an idempotency key with every POST, so a retry after a timeout never charges the customer twice.
- Many results arrive later. Adyen answers a capture request with "received" and sends the outcome in a webhook.
- "Payment API" also means Open Banking payment initiation: a licensed provider asks the customer's bank to send a transfer, with no card involved.
On this page
A payment API is how software talks to a payment provider. Your checkout or backend sends HTTPS requests to the provider's endpoints ("charge $59 on this card", "refund $20 of that order") and the provider answers in JSON. People search for it under many names: payment gateway API, payment processing API, payments API. In practice they all point to the same kind of interface, such as Stripe's Payment Intents, Adyen's Checkout API or PayPal's Orders API.
The term has a second meaning in banking: Open Banking APIs that start a bank transfer from the customer's account. Both are covered below. For who does what between the gateway, the processor and the acquirer, see payment gateway vs payment processor.
The calls every payment API shares
Providers name things differently, but a card payment goes through the same four moves everywhere. Here they are side by side.
| Step | Stripe | Adyen | PayPal |
|---|---|---|---|
| Create the payment | /v1/payment_intents | /sessions (one call) or /payments | /v2/checkout/orders |
| Confirm or authorize | /v1/payment_intents/{id}/confirm, or confirm=true at creation | Result in /payments response, extra steps via /payments/details | /v2/checkout/orders/{id}/authorize, or /capture to take the funds in one step |
| Capture the funds | /v1/payment_intents/{id}/capture | /payments/{pspReference}/captures | /v2/payments/authorizations/{id}/capture |
| Refund | /v1/refunds | /payments/{pspReference}/refunds | /v2/payments/captures/{id}/refund |
All calls are POST requests. Endpoints from the Stripe, Adyen and PayPal API references, read October 14, 2026.1Stripe API Reference, Create a PaymentIntent (read October 14, 2026)3Stripe Docs, Place a hold on a payment method (read October 14, 2026)5Adyen Docs, Build your integration (read October 14, 2026)6Adyen Docs, Capture (read October 14, 2026)7Adyen Docs, Refund (read October 14, 2026)8PayPal Developer, Orders v2 API and Create order (read October 14, 2026)9PayPal Developer, Payments v2 API (read October 14, 2026)
Capture is automatic by default at Stripe and Adyen: the funds are taken as soon as the card is authorized.1Stripe API Reference, Create a PaymentIntent (read October 14, 2026)6Adyen Docs, Capture (read October 14, 2026) PayPal asks you to choose up front with intent: CAPTURE to take the money right away, or AUTHORIZE to hold it. PayPal says authorized payments are "best captured within three days" and can be captured for up to 29 days.8PayPal Developer, Orders v2 API and Create order (read October 14, 2026)
Stripe's PaymentIntent shows the lifecycle best, because its status field changes at each step:2Stripe Docs, How PaymentIntents and SetupIntents work (read October 14, 2026)
- requires_payment_methodCreated, waiting for card details
- requires_action3D Secure or another customer step
- requires_captureAuthorized, funds on hold (manual capture)
- succeededPaid. Safe to fulfill the order
A decline sends the PaymentIntent back to requires_payment_method, so the customer can try another card on the same object.2Stripe Docs, How PaymentIntents and SetupIntents work (read October 14, 2026) The requires_action step is where 3D Secure happens.
Example: one payment, two API calls
This example is based on Stripe's API reference; the IDs and amounts are illustrative. A store authorizes a $59.00 order now and captures it when it ships.1Stripe API Reference, Create a PaymentIntent (read October 14, 2026)3Stripe Docs, Place a hold on a payment method (read October 14, 2026)15Stripe API Reference, Idempotent requests (read October 14, 2026)
curl https://api.stripe.com/v1/payment_intents \ -u "sk_test_...:" \ -H "Idempotency-Key: order-10482-auth" \ -d amount=5900 \ -d currency=usd \ -d payment_method=pm_card_visa \ -d confirm=true \ -d capture_method=manual \ -d "metadata[order_id]=10482"
Amounts are in the smallest currency unit, so 5900 means $59.00. If the card is approved, the PaymentIntent comes back with status: requires_capture. When the order ships, the store calls POST /v1/payment_intents/pi_.../capture. Stripe says an online card authorization is usually valid for 7 days; past that, the hold is released and the payment is canceled.3Stripe Docs, Place a hold on a payment method (read October 14, 2026) A partial capture with amount_to_capture releases the rest. Later, a POST /v1/refunds with the payment_intent and an amount can refund part or all of it.4Stripe API Reference, Create a refund (read October 14, 2026)
Integration types and PCI scope
A payment API can be wired into a checkout in three main ways. The choice decides your PCI DSS self-assessment questionnaire (SAQ), and that is mostly a matter of where card details are typed.
| Integration | Where the customer types the card | Example | PCI questionnaire |
|---|---|---|---|
| Hosted page (redirect) | On the provider's page | Stripe Checkout, PayPal approval page | SAQ A |
| Embedded fields (iframe) | In provider fields inside your page | Adyen Components, Stripe Elements | SAQ A, if your page is protected against script attacks |
| Your own form, posted to the provider | Your page builds the form, data goes straight to the provider | Direct post or JavaScript form | SAQ A-EP |
| Direct API with card data | Card numbers pass through your servers | Server-to-server card calls | SAQ D |
Eligibility from the PCI Security Standards Council's FAQ and SAQ documents.10PCI Security Standards Council, FAQ: SAQ A or SAQ A-EP when all elements of payment pages originate from a compliant provider (read October 14, 2026)11PCI Security Standards Council blog, FAQ clarifies new SAQ A eligibility criteria for e-commerce merchants, February 28, 202512PCI Security Standards Council, Self-Assessment Questionnaire A-EP, PCI DSS v4.013PCI Security Standards Council, Self-Assessment Questionnaire D for Merchants, PCI DSS v4.0
The PCI SSC draws the line by origin. For SAQ A, "all elements of the payment pages must only originate from PCI DSS compliant service provider(s)".10PCI Security Standards Council, FAQ: SAQ A or SAQ A-EP when all elements of payment pages originate from a compliant provider (read October 14, 2026) SAQ A-EP covers e-commerce sites that do "not itself receive account data" but control how customers are sent to the provider.12PCI Security Standards Council, Self-Assessment Questionnaire A-EP, PCI DSS v4.0 SAQ D for Merchants covers merchants that fit no other SAQ, with "e-commerce merchants that accept cardholder data on their website" as the first example.13PCI Security Standards Council, Self-Assessment Questionnaire D for Merchants, PCI DSS v4.0 Since 2025, embedded iframes only stay in SAQ A if the merchant confirms the page is not exposed to script attacks; full redirects aren't concerned.11PCI Security Standards Council blog, FAQ clarifies new SAQ A eligibility criteria for e-commerce merchants, February 28, 2025 The full walkthrough is in how to integrate a payment gateway and hosted payment gateways.
Inside Tagada
Build the funnel once, route every customer to the right offer
Checkout, upsells and subscriptions on one flow, with conditions per country, order or customer.

Keys, idempotency, versions and tests
Five details separate a working integration from one that double charges or breaks on upgrade.
Keys
Stripe gives a publishable key (
pk_) for the browser, and secret (sk_) or restricted (rk_) keys for your server only. Adyen takes an API key in anx-API-keyheader. PayPal uses OAuth 2.0 client credentials.Idempotency
Stripe's
Idempotency-Key(up to 255 characters) replays the first response on retry. Adyen'sidempotency-key(up to 64 characters) stays valid 7 to 14 days.Webhooks
Some results come later. Adyen answers a capture with "received" and sends the outcome in a CAPTURE webhook.
Versions
Stripe uses your account's default version unless you set a
Stripe-Versionheader. Adyen puts the version in the URL, such as/v72/payments.Sandbox
Test keys and test cards: 4242 4242 4242 4242 succeeds, 4000 0000 0000 0002 is declined, 4000 0000 0000 3220 asks for 3D Secure.
Sources: Stripe API keys, Idempotent requests, Versioning and Testing; Adyen authentication, idempotency and capture docs; PayPal Orders v2.14Stripe Docs, API keys (read October 14, 2026)15Stripe API Reference, Idempotent requests (read October 14, 2026)16Adyen Docs, API idempotency (read October 14, 2026)17Stripe API Reference, Versioning (read October 14, 2026)18Adyen Docs, API credentials and authentication (read October 14, 2026)19Stripe Docs, Testing (read October 14, 2026)22Adyen API Explorer, Checkout API v72, POST /payments (read October 14, 2026)6Adyen Docs, Capture (read October 14, 2026)8PayPal Developer, Orders v2 API and Create order (read October 14, 2026)
Two rules come straight from the docs. Stripe compares the parameters of a retried request with the original and returns an error if they differ, and can prune a key once it is 24 hours old, after which the same key starts a new request.15Stripe API Reference, Idempotent requests (read October 14, 2026) It also tells you to never test with real card details in live mode.19Stripe Docs, Testing (read October 14, 2026) For the event side, see webhooks; for retry safety, idempotency; for test setups, sandbox environment.
The other payment API: Open Banking payment initiation
In banking regulation, a payment API often means something else. UK law, which carries over PSD2, defines a payment initiation service as "an online service to initiate a payment order at the request of the payment service user" for an account held at another provider.20The Payment Services Regulations 2017 (UK), regulation 2, implementing PSD2 (read October 14, 2026) The licensed company that does it is a payment initiation service provider (PISP).
The UK Open Banking standard spells out the calls. The PISP creates a consent (POST /domestic-payment-consents), the customer authenticates at their bank and approves it, then the PISP submits the payment (POST /domestic-payments). Requests carry an x-idempotency-key so they can be retried safely. The standard covers domestic, scheduled, standing order and international payments.21Open Banking UK, Payment Initiation API Profile v4.0 (read October 14, 2026)
| Card payment API | Payment initiation API | |
|---|---|---|
| Who you call | Your payment provider (Stripe, Adyen, PayPal) | A PISP, which calls the customer's bank |
| What moves | A card authorization, captured later | A bank transfer from the customer's account |
| Customer approval | Card details, sometimes 3D Secure | Login and approval at the bank |
| After the call | Capture, refund, webhooks | GET the consent or payment order to check its status |
What a payment API means for an online store
One provider means one API, one set of keys, one webhook format. Add a second processor for backup or approval rates, and you add a second set of objects, statuses and events to map onto your orders. That is the job of a payment orchestration layer: one checkout and one routing logic in front of several payment processors.
How Tagada helps
One checkout in front of several processors
Tagada routes payments across TagadaPay and processors such as Stripe, NMI and Airwallex with one logic, with a cascade to another processor when one is down or times out. It runs standalone or with Shopify, WooCommerce or a headless storefront, and supports native 3DS2.
Frequently asked questions
What is a payment gateway API?
What is payment API integration?
What is an example of a payment API?
Do I need PCI compliance if I use a payment API?
Is a payment API the same as a payment processor?
Is Open Banking a payment API?
Sources
Checked October 15, 2026- Stripe API Reference, Create a PaymentIntent (read October 14, 2026)
- Stripe Docs, How PaymentIntents and SetupIntents work (read October 14, 2026)
- Stripe Docs, Place a hold on a payment method (read October 14, 2026)
- Stripe API Reference, Create a refund (read October 14, 2026)
- Adyen Docs, Build your integration (read October 14, 2026)
- Adyen Docs, Capture (read October 14, 2026)
- Adyen Docs, Refund (read October 14, 2026)
- PayPal Developer, Orders v2 API and Create order (read October 14, 2026)
- PayPal Developer, Payments v2 API (read October 14, 2026)
- PCI Security Standards Council, FAQ: SAQ A or SAQ A-EP when all elements of payment pages originate from a compliant provider (read October 14, 2026)
- PCI Security Standards Council blog, FAQ clarifies new SAQ A eligibility criteria for e-commerce merchants, February 28, 2025
- PCI Security Standards Council, Self-Assessment Questionnaire A-EP, PCI DSS v4.0
- PCI Security Standards Council, Self-Assessment Questionnaire D for Merchants, PCI DSS v4.0
- Stripe Docs, API keys (read October 14, 2026)
- Stripe API Reference, Idempotent requests (read October 14, 2026)
- Adyen Docs, API idempotency (read October 14, 2026)
- Stripe API Reference, Versioning (read October 14, 2026)
- Adyen Docs, API credentials and authentication (read October 14, 2026)
- Stripe Docs, Testing (read October 14, 2026)
- The Payment Services Regulations 2017 (UK), regulation 2, implementing PSD2 (read October 14, 2026)
- Open Banking UK, Payment Initiation API Profile v4.0 (read October 14, 2026)
- Adyen API Explorer, Checkout API v72, POST /payments (read October 14, 2026)
Tagada
One checkout, several processors behind it
Funnels, one-click upsells, subscription billing and payment routing, on one customer record.
- 01Create your free account
- 02Connect your store or build a checkout
- 03Launch funnels, upsells and subscriptions
