FastStar developer documentation
Everything you need to integrate FastStar: the hosted checkout via Checkout Sessions, the browser and Flutter SDKs, saved cards with off-session charges, and signed webhooks — all under your own brand.
Base URL https://api.faststarpay.com/api/v1 ·
Authentication send your API key in the X-API-Key header ·
Response envelope { "success", "message", "data" } ·
All amounts are in the smallest currency unit (e.g. cents).
Quickstart: five steps to your first payment
-
Create a merchant account
Sign up for a FastStar merchant account and complete onboarding. In Merchant of Record (MoR) mode you verify your identity online; in Direct/PSP mode your business is reviewed by the platform.
-
Create an API key
In the merchant dashboard, create an API key. Send it as the
X-API-Keyheader on every server-side request. Never embed the key in a browser or mobile app. -
Create a Checkout Session on your server
Your server calls
POST /public/checkout/sessionswith the products to sell and gets back a hosted checkouturl.curl https://api.faststarpay.com/api/v1/public/checkout/sessions \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "mode": "payment", "presentation": "iframe", "line_items": [{ "price_id": "price_xxx", "quantity": 1 }], "success_url": "https://yoursite.com/success", "cancel_url": "https://yoursite.com/cancel" }' -
Open the checkout in your front end
Include FastStar.js and open the session URL in an overlay (
presentation: "iframe"), or redirect the whole page (presentation: "link").<script src="https://cashier.faststarpay.com/sdk/v1/faststar.min.js" defer></script> <script> // data.url comes from your server (step 3) FastStar.checkout.open({ url: data.url }); // overlay // or: window.location.href = data.url; // full-page redirect </script> -
Reconcile with webhooks
Configure a webhook endpoint in the merchant dashboard and fulfill orders on
payment.succeeded. Front-end events such ascheckout.successare for UI only — always treat the server-side webhook as the source of truth.
Browse the docs
JavaScript SDK
Overlay checkout, events, auto-binding, and the card-saving popup — one zero-dependency file.
Read guide →Flutter SDK
Full-screen WebView checkout with unified callbacks for iOS and Android apps.
Read guide →Checkout Sessions
Payment, subscription and setup modes, line items, tax display rules and full examples.
Read guide →Saved cards & off-session charges
Save a card to the vault, then charge it later — including SCA (HTTP 402) handling.
Read guide →API reference
Authentication, endpoints, request and response shapes, and error handling.
Open reference →Webhooks
Event catalog, HMAC signature verification and retry semantics.
Read guide →