Glossary7 min readUpdated October 15, 2026

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.
Want to go further? AskChatGPTClaudePerplexityGrok
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.

StepStripeAdyenPayPal
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 creationResult 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)

  1. requires_payment_methodCreated, waiting for card details
  2. requires_action3D Secure or another customer step
  3. requires_captureAuthorized, funds on hold (manual capture)
  4. 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.

IntegrationWhere the customer types the cardExamplePCI questionnaire
Hosted page (redirect)On the provider's pageStripe Checkout, PayPal approval pageSAQ A
Embedded fields (iframe)In provider fields inside your pageAdyen Components, Stripe ElementsSAQ A, if your page is protected against script attacks
Your own form, posted to the providerYour page builds the form, data goes straight to the providerDirect post or JavaScript formSAQ A-EP
Direct API with card dataCard numbers pass through your serversServer-to-server card callsSAQ 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.

Start free

Keys, idempotency, versions and tests

Five details separate a working integration from one that double charges or breaks on upgrade.

  1. 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 an x-API-key header. PayPal uses OAuth 2.0 client credentials.

  2. Idempotency

    Stripe's Idempotency-Key (up to 255 characters) replays the first response on retry. Adyen's idempotency-key (up to 64 characters) stays valid 7 to 14 days.

  3. Webhooks

    Some results come later. Adyen answers a capture with "received" and sends the outcome in a CAPTURE webhook.

  4. Versions

    Stripe uses your account's default version unless you set a Stripe-Version header. Adyen puts the version in the URL, such as /v72/payments.

  5. 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 APIPayment initiation API
Who you callYour payment provider (Stripe, Adyen, PayPal)A PISP, which calls the customer's bank
What movesA card authorization, captured laterA bank transfer from the customer's account
Customer approvalCard details, sometimes 3D SecureLogin and approval at the bank
After the callCapture, refund, webhooksGET 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.

Nick Bonnassies

CMO at Tagada

CMO at Tagada. Before Tagada, Nick built direct-to-consumer brands that generated over $115M in sales, raised over $25M in crowdfunding and sold two of them. He also works as a fractional CMO on marketing operations and AI systems.

Frequently asked questions

What is a payment gateway API?

It's the payment API of a gateway: the endpoints your server calls to send a payment to the gateway, which passes it on to the processor and card networks. In everyday use, "payment API", "payment gateway API" and "payment processing API" mean the same thing: Stripe's PaymentIntents, Adyen's Checkout API or PayPal's Orders API.

What is payment API integration?

It's the work of connecting your store or app to a provider's payment API: choosing how card details are collected (hosted page, embedded fields or your own form), creating payments from your server with a secret key, confirming results through webhooks, and testing in a sandbox before switching to live keys.

What is an example of a payment API?

Stripe's Payment Intents API is a common one. Your server POSTs to /v1/payment_intents with an amount in cents and a currency, gets back a PaymentIntent with a status such as requires_payment_method, then confirms it. Adyen's /payments endpoint and PayPal's /v2/checkout/orders endpoint do the same job.

Do I need PCI compliance if I use a payment API?

Yes, every merchant that accepts cards does. The API doesn't decide your workload; the way card details are collected does. A redirect or a provider's iframe can qualify for SAQ A, your own page building the form is SAQ A-EP, and card numbers reaching your servers point to SAQ D. Your acquirer confirms which one you file.

Is a payment API the same as a payment processor?

No. The processor is the company that moves the transaction to the card networks and banks. The payment API is the interface you use to send it instructions. Many providers, such as Stripe and Adyen, offer both, which is why the two terms get mixed up.

Is Open Banking a payment API?

Yes, in a second sense. Under PSD2 in the EU and the Payment Services Regulations 2017 in the UK, a licensed payment initiation service provider can ask a customer's bank, through an API, to send a payment from their account. The customer approves it at their bank. No card network is involved.

Sources

Checked October 15, 2026
  1. Stripe API Reference, Create a PaymentIntent (read October 14, 2026)
  2. Stripe Docs, How PaymentIntents and SetupIntents work (read October 14, 2026)
  3. Stripe Docs, Place a hold on a payment method (read October 14, 2026)
  4. Stripe API Reference, Create a refund (read October 14, 2026)
  5. Adyen Docs, Build your integration (read October 14, 2026)
  6. Adyen Docs, Capture (read October 14, 2026)
  7. Adyen Docs, Refund (read October 14, 2026)
  8. PayPal Developer, Orders v2 API and Create order (read October 14, 2026)
  9. PayPal Developer, Payments v2 API (read October 14, 2026)
  10. 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)
  11. PCI Security Standards Council blog, FAQ clarifies new SAQ A eligibility criteria for e-commerce merchants, February 28, 2025
  12. PCI Security Standards Council, Self-Assessment Questionnaire A-EP, PCI DSS v4.0
  13. PCI Security Standards Council, Self-Assessment Questionnaire D for Merchants, PCI DSS v4.0
  14. Stripe Docs, API keys (read October 14, 2026)
  15. Stripe API Reference, Idempotent requests (read October 14, 2026)
  16. Adyen Docs, API idempotency (read October 14, 2026)
  17. Stripe API Reference, Versioning (read October 14, 2026)
  18. Adyen Docs, API credentials and authentication (read October 14, 2026)
  19. Stripe Docs, Testing (read October 14, 2026)
  20. The Payment Services Regulations 2017 (UK), regulation 2, implementing PSD2 (read October 14, 2026)
  21. Open Banking UK, Payment Initiation API Profile v4.0 (read October 14, 2026)
  22. 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.

  1. 01Create your free account
  2. 02Connect your store or build a checkout
  3. 03Launch funnels, upsells and subscriptions