Skip to main content

One-time payment

Swirepay supports one-time charges (single capture for goods or services) in two complementary ways. Pick the model that fits how much checkout UI you want to build and how your backend orchestrates payment APIs.

Choose your integration model

Direct integrationHosted Payment Link
Also known asAPI-first / server-driven checkoutPayment Link / hosted checkout
Who collects card or ACH detailsYour web or mobile app (then tokenized via Swirepay)Swirepay’s hosted payment page
How payment credentials reach SwirepayYour frontend calls POST /v1/token (publishable key); only token references go to your backend to create the payment method and charge — full PAN does not travel through your serversCustomers enter credentials only on the hosted link URL; your backend creates the link and uses GID / verify APIs (no hosted card entry in your UI)
Your backend buildsToken → customer → payment method → payment sessionPOST /v1/payment-link → redirect payer to link → optionally GET …/verify after return
Best whenFull control over UX, APIs, and reconciliationFaster launch, minimal payment UI development
Recurring charges

Both models start from similar primitives (customers, amounts, notifications). Recurring billing uses a setup session after the payment method exists — see Recurring payment.

Partner integrations (x-destination-account)

If you onboard submerchants under your platform, send the optional x-destination-account header (submerchant sp-account-id) on requests that operate in their context.

  • Direct integration: token, customer, payment method, and payment session — see Partner integration.
  • Hosted Payment Link: create, retrieve, and verify payment link calls — see Hosted Payment Link.

API reference: Payment Link, Payment session, Token.