REST API
Production-ready and server-controlled.
Hosted Checkout
UI-complete checkout flow managed by SwiftPay. (coming soon)
Embedded iFrame
In-app payment surface with event callbacks. (coming soon)
REST API
Status: Available now. Use this when you want ownership of the payment lifecycle. It is the best default for most integrations because you control request timing, idempotency strategy, invoice metadata, and reconciliation logic.What you build
- Create an invoice from your backend.
- Persist the returned invoice and map it to your internal order object.
- Render amount, token, chain, and expiry to your users.
- Listen and act on invoice state changes via polling or webhooks.
- Finalize fulfillment only after your backend confirms payment status.
Authentication and keys
Get both keys fromhttps://cockpit.swiftpay.finance → Settings (/settings):
sk_live_...(server secret key)pk_live_...(publishable key for public/checkout flows)
Example implementation pattern
id and externalRef together, then use either:
- periodic status checks for internal dashboards, or
- webhook-driven processing for automated order completion.
Hosted Checkout
Status: Coming soon. This is the low-friction mode. You generate invoices with the same REST API, then send users to a SwiftPay-hosted payment URL. The product goal is to remove frontend complexity while preserving API-side control.How it will work
- Create invoice using REST.
- Redirect user to a hosted page derived from invoice context.
- User pays on-chain in a dedicated SwiftPay interface.
- Callback/return path and webhook still drive final order state on your backend.
Embedded iFrame
Status: Coming soon. This path is for teams that need a branded embedded checkout experience without building payment logic from scratch. SwiftPay handles flow orchestration; you control layout and user journey wrapping.Planned integration contract
Security guardrails
- Keep secret-key usage strictly on the server.
- Restrict allowed iframe origins in your CSP/embedding policy.
- Treat browser messages as UX hints; finalize anything important through backend verification.
Recommendation by integration goal
- You need reliability and full control today → REST API
- You need launch speed tomorrow → start with REST API, then switch user journey to Hosted Checkout if needed
- You need a white-label payment surface → plan for Embedded iFrame after GA
For implementation details and request payloads, start from the Quickstart.