Documentation

Take a test payment first, then go deeper into the workflow you are implementing.

Quickstart
Accept your first payment

Create an order, collect payment on a Flint-hosted checkout page, and verify it in four API calls, no frontend code.

Your test API key

Sign in and we'll fill your sandbox test key into every code example automatically.

Test card
4242 4242 4242 4242

Any future expiry, any CVC. Works on every test-mode checkout. See Testing for declines and 3D Secure.

Common use cases

Try it out

These reference pages fire real sandbox requests with your test key.

Get started

The shortest path to a test payment.

Payments

Orders, embedded payments, and hosted checkout.

Why Flint Is Orders-First

The order is Flint's durable commerce record; checkout sessions, payment intents, invoices, and payment links are collection surfaces attached to it. What that buys your integration, and when to skip it.

Embedded Payments with Stripe Elements

Collect card payments in your own UI with Stripe Elements and Flint's order-owned payment flow, including 3D Secure.

Server-Confirmed Payments

Collect a ConfirmationToken in the browser, confirm through Flint, handle typed client actions, and safely continue manual confirmation.

Affirm Payments

Offer buyer-present Affirm payments with Flint, Stripe Elements, clean browser returns, and server-owned payment state.

Checkout Sessions

Create a hosted or embedded Flint checkout for one buyer, then verify the result from your backend.

Add shipping to a checkout

Create an active flat-rate shipping method, quote it for a buyer, and record the selected option.

Payment Links

Create a reusable hosted checkout URL you can share anywhere. Sell products, collect donations, ticket events, and start subscriptions with no frontend code.

Images

Add durable, responsive images to products, variants, bundles, subscription plans, payment links, and merchant branding.

Payment Links vs Checkout Sessions vs Invoices

Three hosted ways to collect payment, one orders-first engine underneath. Decide in two questions, see the boundaries, and learn how to combine them.

Manual Capture

Place a hold on a card with delayed capture, then capture in full or in part, or cancel to release the hold.

ACH Debit Payments

Accept one-time US bank payments through hosted checkout or a standalone PaymentIntent, then handle delayed settlement, returns, and refunds safely.

Handling Declines & Payment Attempts

How order payments recover from declines, 3D Secure, finalizing, and lost responses. Read the payment attempt, branch on is_resumable, and retry without losing the order.

Refunds

Issue full, partial, and line-item refunds, track them through their asynchronous lifecycle, and handle the ones that fail.

Tips & Fees

Let buyers add a tip and add your own fees, like delivery and service charges, to an order. Fixed and percent amounts, tax treatment, and how both land in order totals.

Sales Tax

Calculate US sales tax on orders, supply a tax location, read jurisdiction breakdowns, and control how tax reverses on a refund.

Promotions

Build automatic discounts, code campaigns, buy-X-get-Y offers, and stacking rules with Flint promotions.

Risk Controls

Evaluate every payment attempt, author deterministic rules and lists, resolve reviews, and respond to fraud warnings.

Headless

Own the checkout, the buyer account, or both, on your own domain.

Returns

Take merchandise back, and settle what the buyer is owed.

Inventory

Track stock per location and route demand across them.

Invoicing

Subscriptions

Customer accounts

Where buyers track orders, manage subscriptions, and start returns.

Reliability

Webhooks, retries, and failure handling.

Operations

Run Flint in production: money movement and disputes.

Migrations

AI & agents

Build agentic and headless integrations on Flint.

Platform

Rate this doc