A payment gateway API is the set of HTTPS endpoints a business calls to authorize a card payment, capture, void or refund it, store the card as a token and get the result by webhook. Compare gateways on five things: authorization windows, idempotency rules, API versioning, PCI DSS scope per integration and published price. The tables below give each provider’s documented figures, checked November 15, 2026.

What a payment gateway API does

Most gateway APIs expose four operations under different names. Authorize reserves funds on the card, capture collects them, void cancels an authorization before settlement, and refund returns money after settlement. Authorize.net models all four as transactionType values: authOnlyTransaction, priorAuthCaptureTransaction, voidTransaction and refundTransaction.

Splitting authorization from capture is usually a per-request setting. On Stripe a business sets capture_method to manual on a PaymentIntent, which instructs Stripe to “authorize the amount but not capture it”; if the authorization expires uncaptured, “the funds are released” and the payment status changes to canceled (Stripe). How long the capture window runs depends on the card brand and the transaction type, and providers document it differently.

Provider Documented authorization window
Stripe, card not present Visa 5 days merchant-initiated (exactly 4 days and 18 hours) and 7 days customer-initiated; Mastercard, American Express and Discover 7 days
Stripe, card present Visa 5 days; Mastercard, American Express and Discover 2 days
Braintree Visa 8 days by default, 3 days for merchant-initiated recurring or unscheduled; Mastercard final authorization 7 days, preauthorization 30 days; American Express 7 days; Discover 30 days; PayPal 29 days
Authorize.net Authorization Only expires if not captured within 30 days

Sources for the rows: Stripe, Braintree and Authorize.net.

Voids and refunds are not interchangeable. Braintree allows a void while a transaction is Authorized or Submitted for Settlement and warns that an authorization left neither settled nor voided can draw a misuse of authorization fee; once the transaction is Settling or Settled, a refund is required instead (Braintree). Authorize.net states that once a transaction settles it cannot be voided, and that by default a merchant can refund a settled transaction within 180 days of settlement (Authorize.net). Stripe lets a business cancel a payment before it completes at no cost, allows several partial refunds up to the original amount, may charge a fee on a refund after success, and sends refunds only back to the original payment method (Stripe).

Gateway, processor and acquirer: who does what

Visa puts the gateway at the front of the chain: payment gateways are “the front-end technology built into websites or apps” that secures checkout, while a payment processor is the set of “back-end systems” that let banks and card networks exchange data for authorization, and the acquiring bank holds the funds in a merchant account (Visa).

Gateways describe themselves the same way. Authorize.net says it “acts as a bridge between your company and the financial entities” that oversee processing and settlement, and that it does not store the merchant’s funds (Authorize.net). A gateway account alone therefore does not let a business accept cards: Authorize.net approves the gateway account automatically on application, while approval of the merchant account “can be immediate or take from one to five business days or more” (Authorize.net). Where the gateway ends and a full payment service provider or an orchestration layer begins is covered in payment gateway vs PSP.

Software platforms that pass a gateway API through to their own users sit in a different pattern, covered in embedded payments. Profiles: Stripe Connect, Adyen for Platforms.

API versioning and authentication

A gateway API changes under the integration, so the version a request runs on matters as much as the endpoint. Stripe releases a new API version every month with no breaking changes and, twice a year, a major release that starts with breaking changes; the current version on November 15, 2026 was 2026-10-28.endive (Stripe). A raw HTTP request runs on the account’s default version unless it sets the Stripe-Version header, and webhook events use the account default unless a version is set when the endpoint is created. Newer Stripe SDKs pin the API version that was current when the SDK was released.

Authentication follows the same split between API generations. Stripe’s v1 examples pass the secret key as the HTTP basic-auth user (-u sk_test_...:), while v2 endpoints such as /v2/core/event_destinations take Authorization: Bearer with a dated Stripe-Version header (Stripe webhooks).

Tokenization, vaulting and network tokens

Adyen defines tokenization as replacing sensitive data such as the card number with a token stored in the Adyen Vault, and says of the result: “Tokens reduce your security risks and lowers your PCI DSS scope.” Its Sessions flow, Adyen writes, “qualifies you for the simplest form of PCI validation (SAQ A)” (Adyen).

Network tokens come from the card networks instead. Visa Token Service replaces a 16-digit Visa account number with a token carrying a surrogate account number and cryptographic data, and Visa’s FY2025 annual report states: “As of September 30, 2025, Visa has provisioned more than 16 billion tokens.” (SEC filing, November 6, 2025). On June 4, 2024 Visa said it had issued more than 10 billion tokens since the technology’s 2014 launch, with over 8,000 issuers enabled for tokenization (Visa). Mastercard, whose tokenization service also started in 2014, announced on June 11, 2024 a commitment to 100% e-commerce tokenization in Europe by the end of the decade and said the service then “secures 25% of all e-commerce transactions globally”, its own figure (Mastercard). On June 10, 2026 Visa announced richer token data on transaction type, where a token is used and who pays, plus a “token assurance signal” evaluated across a token’s lifecycle from provisioning and behavioral history (Visa). How network tokens are provisioned and refreshed is covered in network tokenization.

A vault token belongs to the provider that stores the card. The provider documentation used here does not publish terms for moving stored tokens to another provider, so treat portability as a contract question rather than a documented feature. Businesses that route across more than one gateway handle it at the payment orchestration layer. Profiles: Spreedly, Primer.

3-D Secure and EMV 3DS

EMVCo, which owns the specification, describes EMV 3DS as a card-not-present fraud prevention technology in which the merchant sends transaction, payment method and device data to the issuer to “confirm that the consumer making the purchase is the actual cardholder” (EMVCo). The result is not always a challenge screen: the frictionless flow “enables issuers to accept transactions without challenging cardholders” on a real-time risk assessment of transaction, cardholder history, device and IP data (EMVCo, October 10, 2024).

Versions matter in procurement. EMVCo released EMV 3DS 2.3.1 on September 29, 2022, stating that it “is effective immediately and replaces EMV 3DS 2.3.0” and adding data elements for Secure Payment Confirmation and out-of-band authentication; EMVCo’s documentation page lists the Protocol and Core Functions Specification v2.3.1.1. Both generations are still in play: an EMVCo Letter of Approval dated May 20, 2026 tests against “the EMV 2.2.0 and/or 2.3.1 Specifications”. The next version is in draft: EMVCo’s Q2 2026 newsletter lists a draft Protocol and Core Functions Specification Version 2.4, available to EMVCo associates and subscribers only, and a new regression testing approach for all 2.3.1 components.

When 3DS fires is a gateway setting. Stripe triggers it automatically where regulation requires, such as Strong Customer Authentication in Europe, on an issuer soft decline, or through Radar and API rules; wallets and off-session payments may not support 3DS, and Stripe also sells standalone 3DS for use with another payment service provider (Stripe).

Idempotency keys, webhooks and sandboxes

Payment requests get retried, so key limits and lifetimes belong in the integration design. The mechanics of safe retries are covered in payment API idempotency.

Provider Header Key limit Lifetime
Stripe (API v1) Idempotency-Key up to 255 characters removable after at least 24 hours
Adyen idempotency-key maximum 64 characters valid 7 to 14 days after first submission
Checkout.com Cko-Idempotency-Key not stated on the page 72 hours by default, sandbox and production

On API v1, Stripe saves the status code and body of the first request once the endpoint starts executing, returns it on retries, including a 500 error, and errors if a key is reused with different parameters; on API v2, retries do not repeat successful work, and Stripe tries to finish failed or partly failed work and returns an updated response. Adyen scopes keys to the company account and does not check them across regional endpoints; concurrent duplicates return HTTP 422 or 409 with error 704. Checkout.com stores a key only when the request returns a 2xx response, applies the header to payments, authorizations, captures, cancellations, refunds, voids, payment contexts and transfers, and returns 409 on concurrent duplicates.

Webhooks carry the asynchronous half of a payment. Stripe sends events as HTTPS JSON for cases such as a bank confirming a payment or a customer disputing a charge. In live mode it retries undelivered events for up to three days with exponential back-off, and in a sandbox three times over a few hours. It does not guarantee event order, and an endpoint can receive the same event more than once. Each event is signed in the Stripe-Signature header with an HMAC SHA-256 v1 signature over the timestamp and the raw request body, and Stripe’s libraries reject timestamps more than 5 minutes old by default (Stripe webhooks, managing webhook endpoints). Retry and duplicate handling across providers is covered in payment webhooks.

Sandboxes differ in scope and even protocol. Stripe sandboxes are isolated test environments where test cards such as 4242 4242 4242 4242 simulate success, declines, disputes, refunds and 3DS, and where “these transactions don’t move funds” (Stripe). Authorize.net publishes a separate sandbox endpoint at https://apitest.authorize.net/xml/v1/request.api and notes that its API “is not based on REST”: JSON is translated into XML elements, so element order must match the reference (Authorize.net). Adyen’s Checkout API offers a Sessions flow with one server request to /sessions and an Advanced flow with three: /paymentMethods, /payments and /payments/details (Adyen).

PCI DSS scope: hosted fields or direct API

The integration style decides which Self-Assessment Questionnaire a merchant completes and how many PCI DSS requirements come with it. The table below is from the PCI Security Standards Council’s SAQ Instructions and Guidelines v4.0.1 r1, April 2025.

E-commerce method SAQ PCI DSS v4.x requirements
Fully outsourced, merchant has no access to its own webpage SAQ A 14
Redirect to a compliant third-party service provider SAQ A 27
Embedded third-party payment form, for example an iframe SAQ A 27
Direct Post, or a merchant-delivered script that builds the payment page SAQ A-EP 139
All other methods, including card data reaching merchant servers SAQ D all requirements

The PCI SSC lists e-commerce merchants that accept account data on their website, and merchants with electronic storage of account data, among the SAQ D examples (PCI SSC, April 2025). SAQ A eligibility is strict about delivery: all elements of the payment page reaching the customer’s browser must originate “only and directly from a PCI DSS compliant TPSP/payment processor”, and if any element originates from the merchant’s website, SAQ A does not apply (PCI SSC SAQ A). SAQ A r1 added a further criterion, that the merchant has confirmed its site is not susceptible to attacks from scripts; the PCI SSC’s FAQ 1588 says this can be met through techniques like Requirements 6.4.3 and 11.6.1 or by confirmation from the iframe provider, applies it to embedded pages rather than redirects, and puts it in effect on April 1, 2025 (PCI SSC, February 28, 2025).

PCI DSS v4.0.1 is still the version in force. The Council ran a request for comments on it from June 3 to July 20, 2026 “to help determine whether to revise” the standard, and has named no successor version or date (PCI SSC).

Providers publish their own mapping. Checkout.com states that Flow, its Hosted Payments Page, Payment Links, Frames and mobile SDKs need SAQ A, while “Our Full Card API with your own integration platform” needs SAQ D (Checkout.com). Braintree lists Hosted Fields and Drop-in as SAQ A integrations (Braintree). Stripe says a business handling untokenized card data directly “might be required to meet more than 300 security controls in PCI DSS”, its own figure, that it is certified annually as a PCI Level 1 Service Provider, and that the card type, last four digits and expiry it returns are out of PCI scope (Stripe).

Published pricing

The order of rows carries no meaning, and each figure is the provider’s own published rate as of November 15, 2026.

Provider Published price Notes
Stripe 2.9% + 30 cents per successful domestic card transaction +1.5% for international cards; +1% when currency conversion is required; no setup or monthly fees; dispute received fee $15.00
Adyen fixed processing fee plus a payment-method fee; Visa listed at $0.13 + Interchange+ + 0.60% (Global) interchange passed through at cost; no setup, monthly, integration or closure fees
Braintree (PayPal), US standard 2.89% + 0.29 USD for cards and third-party digital wallets +1% for non-USD presentment and +1% for cards issued outside the US; chargeback 15.00 USD; fees not returned on refunds; page last updated May 7, 2026
Authorize.net Gateway only: $25 per month + 10 cents per transaction + 10-cent daily batch fee. All-in-one: $25 per month + 2.9% + 30 cents all-in-one bundles a merchant account, subject to eligibility
Checkout.com not published flat-rate or interchange++ structures quoted on contact

Sources for the rows: Stripe, Adyen pricing and Adyen Visa fees, PayPal Braintree fees, Authorize.net and Checkout.com.

Worked example: 1,000 card payments of $100

The table applies the published rates above to one month of 1,000 domestic US card payments of $100 each, $100,000 in volume, with 30 daily batches for Authorize.net. It is arithmetic on list prices, not a quote.

Provider and plan Calculation Monthly cost Effective rate
Stripe 1,000 × ($2.90 + $0.30) $3,200 3.20%
Braintree, US standard 1,000 × ($2.89 + $0.29) $3,180 3.18%
Authorize.net all-in-one $25 + 1,000 × ($2.90 + $0.30) $3,225 3.23%
Authorize.net gateway only $25 + 1,000 × $0.10 + 30 × $0.10 $128 gateway fees only; the merchant account’s processing fees come on top
Adyen, Visa 1,000 × ($0.13 + $0.60) $730 plus interchange, which varies by card

The same $100 payment on a card issued outside the US costs $4.70 on Stripe (2.9% + 1.5% + 30 cents) and $4.18 on Braintree (2.89% + 1% + 0.29 USD). If the payment also needs currency conversion, add another 1% on each: $5.70 and $5.18. A blended rate is therefore only comparable once the share of international cards is known.

What to compare when choosing a payment gateway API

  • Authorization window per brand and transaction type. Stripe documents 5 to 7 days for card-not-present authorizations, Braintree up to 30 days for a Mastercard preauthorization, Authorize.net 30 days for Authorization Only.
  • Void and refund boundaries. Ask at which status a void stops working, whether a misuse-of-authorization fee applies, and how long after settlement a refund is allowed.
  • Idempotency key limit and lifetime. 255 characters and 24 hours on Stripe v1, 64 characters and 7 to 14 days on Adyen, 72 hours on Checkout.com, and the error code a concurrent duplicate returns.
  • API versioning. How often versions ship, which changes break, how a request pins its version and which version webhooks are built on.
  • SAQ level per integration. A hosted or embedded form can put a merchant in SAQ A at 27 requirements; a direct card API can mean SAQ A-EP at 139 or SAQ D.
  • Token storage and network tokens. Where the card sits, what the provider states about PCI scope, and whether network tokens from Visa or Mastercard are supported.
  • 3DS control. Which version the provider supports, what triggers a challenge, and whether standalone 3DS can be used with another provider.
  • Webhook verification, retries and sandbox coverage. Signed events with a documented verification path, a retry window long enough to cover an outage, and test cards that reproduce declines, disputes and 3DS.
  • Published pricing or a quote. Stripe, Adyen, Braintree and Authorize.net publish rates; Checkout.com does not.

More in the payments guides.