| Payment | Amount | Status | Method |
|---|---|---|---|
| pi_1kmn0aExample | $19.43 | Succeeded | Visa ··4242 |
| pi_1kmn0bExample | $128.00 | Succeeded | Apple Pay |
| pi_1kmn0cExample | $44.28 | Requires action | Visa ··0341 |
| pi_1kmn0dExample | $96.00 | Declined | Mastercard ··0002 |
| pi_1kmn0eExample | $212.50 | Succeeded | Bank ··6789 |
| pi_1kmn0fExample | $61.00 | Refunded | Google Pay |
Payment API
A payment API built on the order.
Send Flint the line items. It computes the sales tax and the total, hosts the checkout, and charges the card through Stripe, then keeps every payment, decline, refund, and dispute on that one order. The order tables, tax math, and refund tooling you would build around a charge are running the day you get your keys.
3.79% + 35¢ on cards · no monthly fee · free sandbox · no credit card
import { Client } from "@flintpay/node";
const flint = new Client({
baseUrl: "https://api.withflintpay.com",
apiKey: process.env.FLINT_API_KEY!,
});
// 1. Send what the buyer is buying. Flint computes the total.
const order = await flint.orders.create({
line_items: [
{ type: "custom", name: "Cold brew", quantity: "2",
unit_price_money: { amount: "650", currency: "USD" },
fulfillment: { requirement: "none" },
tax: { taxable: true } },
{ type: "custom", name: "Croissant", quantity: "1",
unit_price_money: { amount: "495", currency: "USD" },
fulfillment: { requirement: "none" },
tax: { taxable: true } },
],
tax: {
enabled: true,
calculation: { mode: "automatic", price_mode: "additive" },
location: {
address_source: "provided",
address_type: "postal_code",
address: { postal_code: "78701", country: "US" },
},
},
});
// 2. A hosted checkout page for whatever the order owes
const launch = await flint.checkoutSessions.create({
type: "order",
order_id: order.order_id,
redirects: { success_url: "https://example.com/thanks" },
});
// 3. Redirect the buyer to launch.url
// 4. Fulfill on the order.paid webhook, or read the order
const paid = await flint.orders.get(order.order_id);The whole integration. You never send an amount: Flint computes it from the line items, and checkout collects whatever the order still owes.
POST /v1/orders2 line items · tax computed201POST /v1/checkout-sessionshosted checkout · pays $19.43201POST /v1/refundsCroissant ×1 · −$5.36201Automatic tax needs a one-time connection in the dashboard. Leave tax out and the same calls run on a brand-new sandbox.
24
decline codes, one closed set
last_payment_error.code
5
payment methods, all settling one order
ACH debit · Affirm · Apple Pay · Card · Google Pay
755
API operations on one set of keys
counted from the OpenAPI spec
01Order-first
The code around a charge is already written.
A charge API records an amount and a currency. What was sold, the tax on it, what went back, and what is still owed live in tables you build and keep in step with the processor. On Flint, all of it is the order, and the API keeps it current with every payment and refund.
Around a charge API, you build
Totals
An orders table and the code that sums it
has to match the charged amount to the cent
Sales tax
A tax lookup, stored per line item
recomputed on every edit and every refund
Refunds
Tooling that maps a charge back to items
plus each item's share of the tax
Balance owed
A balance column and the bookkeeping behind it
updated on every payment and every refund
Declines
A parser for processor decline strings
one more mapping for each payment method
Webhooks
Dedupe, replay, and retry-safe writes
a processed-events table to maintain
Reconciliation
A nightly diff against the processor
and someone to read what it finds
7 systems to build, test, and keep in sync
On Flint, you read the order
Totals
pricing_amountsPOST /v1/ordersSales tax
tax_moneypricing_amounts.tax_moneyRefunds
line_item_allocationsPOST /v1/refundsBalance owed
outstanding_moneysettlement_amountsDeclines
last_payment_errorPOST /v1/orders/{order_id}/payWebhooks
webhook_event_idorder.paidReconciliation
merchant_net_moneyGET /v1/balance-transactions
1 order · 1 API key · 1 webhook stream
One total, everywhere it appears. The price lives on the order, so the hosted page, your own form, an invoice, and the receipt all read the same number. The only way to get two prices for one sale is to compute a total yourself and send it.
A failed attempt keeps the sale. A declined card or an abandoned checkout leaves an order you created open, with its line items and its balance. Take another card or open a new session, and the next attempt collects the same total.
02How it works
Four steps from line items to a paid order.
Three API calls and one redirect, all on a free sandbox key, and none needs a frontend of your own. Each step returns something you would otherwise have built.
Create the order
POST /v1/ordersLine items go in. The subtotal, sales tax, total, and the balance still owed come back computed, and every payment after this settles against that balance.
201 Created{ "data": { "order_id": "ord_1kmn0aExample", "status": "open", "payment_status": "unpaid", "pricing_amounts": { "subtotal_money": { "amount": 1795, "currency": "USD" }, "tax_money": { "amount": 148, "currency": "USD" }, "total_money": { "amount": 1943, "currency": "USD" } }, "settlement_amounts": { "paid_money": { "amount": 0, "currency": "USD" }, "outstanding_money": { "amount": 1943, "currency": "USD" } } } }what Flint computed Cold brew, 2 at $6.50 $13.00 Croissant, 1 at $4.95 $4.95 Subtotalpricing_amounts.subtotal_money $17.95 Sales tax, 78701pricing_amounts.tax_money $1.48 Totalpricing_amounts.total_money $19.43 Still owedsettlement_amounts.outstanding_money $19.43 Tax comes from the order's tax location, here a ZIP code. Change a line item and Flint recomputes every figure. Open a checkout session
POST /v1/checkout-sessionsPass the order id and where to send the buyer afterward. The request carries no amount, because the session collects what the order owes.
201 Created{ "data": { "checkout_session_id": "cs_1kmn0aExample", "status": "open", "order_id": "ord_1kmn0aExample", "url": "https://checkout.withflintpay.com/checkout/cs_1kmn0aExample#checkout_token=..." } }Redirect to data.url exactly as returned. The token in its fragment is what admits the buyer, so nobody reaches the page by guessing an id.
Send the buyer to the page
Flint hosts it under your business name, with your payment methods, 3D Secure, and the receipt already on it. There is no payment form for you to build.
checkout.withflintpay.comThe hosted page for the order above, built from the components the product ships. Every figure on it came from the API. Fulfill when the order is paid
GET /v1/orders/{order_id}Subscribe to order.paid, or read the order, and fulfill when payment_status is paid. A buyer who closes the tab before the redirect still gets their order, because you never relied on the redirect.
200 OK, after the buyer pays{ "data": { "order_id": "ord_1kmn0aExample", "status": "closed", "closed_reason": "paid", "payment_status": "paid", "refund_status": "none", "settlement_amounts": { "paid_money": { "amount": 1943, "currency": "USD" }, "outstanding_money": { "amount": 0, "currency": "USD" } }, "checkout_session_ids": ["cs_1kmn0aExample"], "payment_intent_ids": ["pi_1kmn0aExample"] } }Nothing outstanding, and the order closed itself. The session and the payment that paid it are listed on the order.
03Collect
Hosted page, your own form, or a saved card.
All three pay the same order, so refunds, webhooks, and reports work the same whichever you choose. Start on the hosted page and move to your own form later without changing anything downstream.
Hosted checkout
POST /v1/checkout-sessionsFlint hosts the page under your business name, with your payment methods, 3D Secure, and the receipt already on it. Redirect to the URL the API returns.
Your own payment form
GET /v1/orders/{order_id}The order carries payment_collection: the Stripe account, the publishable key, and the amount. Mount Stripe Elements with it, then pay the order from your backend.
A saved card
POST /v1/orders/{order_id}/paySave a card once with POST /v1/payment-methods, then pay a repeat order with payment_source.payment_method_id while the buyer confirms in your app.
Payment methods, on every surface
- ACH debit
- Affirm
- Apple Pay
- Card
- Google Pay
Wallets render as express buttons above the card form. ACH debit is a one-time debit in USD with instant bank verification, so the buyer never types a routing number. Affirm appears for eligible purchases when you turn it on.
{
"data": {
"order_id": "ord_1kmn0aExample",
"payment_collection": {
"stripe": {
"account_id": "acct_1kmn0aExample",
"publishable_key": "pk_test_1kmn0aExample",
"elements": {
"next_step": "create_confirmation_token",
"submit_to": "pay_order",
"mode": "payment",
"amount_money": { "amount": 1943, "currency": "USD" },
"payment_options": ["card", "apple_pay", "google_pay"]
}
}
}
}
}The account, the publishable key, the amount, and the wallets to offer. Read it before you mount Elements; it is recomputed on every read and holds no secrets.
curl -X POST \
https://api.withflintpay.com/v1/orders/ord_1kmn0aExample/pay \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: pay-cafe-001" \
-d '{
"action": "pay",
"payment_source": {
"credential_type": "stripe_confirmation_token",
"stripe": { "confirmation_token": "ctoken_1kmn0aExample" }
},
"expected_outstanding_money": {
"amount": 1943,
"currency": "USD"
}
}'expected_outstanding_money is the total the buyer approved. If tax or a promotion changed the order since, Flint refuses before charging, and you show the new total.
Authorize now, capture later
Set capture_method to manual and confirming places a hold on the card, which usually lasts seven days. Capture some or all of it, or cancel to release it.
- capture_method
- POST /v1/payment-intents/{payment_intent_id}/capture
Several payments, one order
Split tender and partial payments put several payments on one order. The balance runs down as each one lands, and order.paid fires once, at zero.
- completion_behavior
- partial_payment
- order.partially_paid
A charge with no order
When your own system is the record of the sale, a payment intent takes an amount and your id, on the same keys.
- POST /v1/payment-intents
- external_reference_id
Payment links, invoices, and subscription renewals pay orders too, and manual capture works on an order’s payment. Selling a whole catalog? The commerce API adds products, inventory, promotions, shipping, and returns to the same order.
04Declines
Every decline is one of 24 codes.
A decline isn't an API error. The pay call returns 200 with the attempt, the payment that failed, and why, so your code branches on one code and never parses a processor's message or makes a second request to find out.
{
"data": {
"order": {
"order_id": "ord_1kmn0aExample",
"status": "open",
"payment_status": "unpaid"
},
"order_payment_attempt": {
"order_payment_attempt_id": "opat_1kmn0aExample",
"status": "failed",
"is_resumable": false,
"payment_intents": [
{
"payment_intent_id": "pi_1kmn0aExample",
"status": "requires_payment_method",
"amount_money": { "amount": 1943, "currency": "USD" },
"last_payment_error": {
"code": "insufficient_funds",
"message": "The payment method has insufficient funds. Ask the customer to use a different payment method.",
"remediation": { "retry": "none" }
}
}
]
}
}
}remediation tells your code whether a retry can work. Replaying the same Idempotency-Key returns this same decline and never charges twice.
last_payment_error.code · 24 codes
- card_declined
- card_declined_do_not_retry
- card_details_outdated
- do_not_honor
- lost_card
- stolen_card
- fraudulent
- insufficient_funds
- expired_card
- incorrect_cvc
- payment_method_unavailable
- processing_error
- authentication_required
- payment_blocked
- payment_method_declined
- payment_method_temporarily_unavailable
- payment_not_completed
- payment_action_expired
- bank_account_closed
- bank_account_not_found
- bank_debit_not_authorized
- bank_account_restricted
- bank_debit_limit_exceeded
- payment_failed
Flint maps every processor reason onto this set before it reaches you, including the bank debit codes. Your API key sees the exact code. A buyer’s checkout sees lost_card, stolen_card, fraudulent, do_not_honor, and card_declined_do_not_retry as card_declined, so nobody learns why the issuer said no. What each card decline code means
A dropped connection is covered too. If Flint doesn’t know a payment’s outcome yet, the attempt stays processing with is_resumable set to true. Resuming it asks the processor what happened instead of charging again. Declines guide →
- processing
- is_resumable
05Refunds
Refund one item. Its tax goes back with it.
Name the line item and the quantity. Flint works out what that line sold for, adds its share of the tax, records the refund on the order, and rejects anything larger than what is left to refund.
curl -X POST https://api.withflintpay.com/v1/refunds \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: refund-cafe-croissant" \
-d '{
"refund_type": "targets",
"order_id": "ord_1kmn0aExample",
"reason": "requested_by_customer",
"line_items": [
{ "order_line_item_id": "li_1kmn0bExample", "quantity": 1 }
]
}'{
"data": {
"refund_id": "ref_1kmn0aExample",
"status": "pending",
"order_id": "ord_1kmn0aExample",
"amount_money": { "amount": 536, "currency": "USD" },
"line_item_allocations": [
{
"order_line_item_id": "li_1kmn0bExample",
"quantity": 1,
"refunded_money": { "amount": 536, "currency": "USD" },
"tax_refund_mode": "automatic",
"automatic_refund": {
"subtotal_money": { "amount": 495, "currency": "USD" },
"discount_money": { "amount": 0, "currency": "USD" },
"tax_money": { "amount": 41, "currency": "USD" },
"total_money": { "amount": 536, "currency": "USD" }
}
}
]
}
}$4.95 for the croissant plus $0.41 of tax. You sent an id and a quantity, and no amounts. The refund starts pending and reports its outcome on refund.succeeded or refund.failed.
| order ord_1kmn0aExample | paid | after refund | |
|---|---|---|---|
| Cold brew, 2 | $13.00 | $13.00 | |
| Croissant, 1subtotal_money | $4.95 | $0.00 | |
| Sales taxtax_money | $1.48 | $1.07 | |
| Net collectedsettlement_amounts | $19.43 | $14.07 | |
By order, amount, or item
Refund everything left, an amount, or named line items and charges. Keep a restocking fee with an adjustment on the line.
- refund_type
- refund_adjustments
The order stays paid
A refund moves the order's refund status to partially refunded or refunded. The order still reads paid, and nothing is added to what is owed.
- refund_status
- order.partially_refunded
- order.refunded
Disputes on the same order
Each dispute links back to its payment and order, with its evidence deadline and the disputed amount. Answer it in the dashboard or in your own interface.
- GET /v1/disputes
- evidence_due_at
- dispute.needs_response
06After payment
One webhook to fulfill on. Your net on every payment.
order.paid fires when the order becomes paid on any surface: hosted checkout, your own form, a payment link, or an invoice. One subscription covers them all. Each payment carries its fee and what you net, and payouts land in your bank on a schedule you set.
{
"webhook_event_id": "whev_1kmn0aExample",
"event_type": "order.paid",
"api_version": "2026-09-07",
"mode": "test",
"created_at": "2026-10-23T14:00:20Z",
"data": {
"object": {
"order_id": "ord_1kmn0aExample",
"status": "closed",
"payment_status": "paid",
"pricing_amounts": {
"total_money": { "amount": 1943, "currency": "USD" }
},
"settlement_amounts": {
"paid_money": { "amount": 1943, "currency": "USD" },
"outstanding_money": { "amount": 0, "currency": "USD" }
},
"payment_intent_ids": ["pi_1kmn0aExample"]
}
}
}webhook_event_id is the same on every retry and resend, and arrives in the webhook-id header before you parse the body. Deduplicate on it.
Events to subscribe to
- order.paid
- order.partially_paid
- order.refunded
- payment_intent.payment_failed
- payment_intent.requires_action
- refund.succeeded
- dispute.needs_response
- payout.succeeded
Every delivery carries a Flint-signed JWT you verify with Flint’s public keys. One that doesn’t get a 2xx within 10 seconds is retried up to 8 more times over about three days. Webhooks guide →
Receive them on localhost
The CLI forwards Flint-signed events without a tunnel and prints the endpoint ID to verify them against, so the same JWT verifier runs locally and in production.
Money out
Each payment reports its processing fee and your net, so you never compute either. Balances split pending from available, and payouts run on your schedule or when you ask. Payouts guide →
- processing_fee_money
- add_on_fees
- merchant_net_money
- GET /v1/balances
- GET /v1/payouts
Processing
Stripe processes every card. You hold one set of Flint keys.
Card details go from the buyer’s browser to Stripe and never reach your server. Flint sets up and runs the processing account, so there is no Stripe account to open, and one processing fee per payment covers both. Moving an existing integration? The Stripe migration guide maps each Stripe object to its Flint equivalent, one payment flow at a time.
counted from the published OpenAPI spec and event catalog · every code sample is checked against them at build time
07For developers
SDKs, a CLI, sandboxes, and docs your agent can read.
Every operation is in the published OpenAPI spec, which you can read without a key. The same contract generates the SDKs, the CLI’s commands, and the API reference, so a name you learn in one works in the others.
Node and PHP SDKs
Generated from the same contract as the API reference, so every operation is a typed method. Money is an exact string, never a float.
- @flintpay/node
A CLI that maps to the API
Every API command is a documented route. Forward sandbox webhooks to localhost, wait on a state, or serve the commands to an agent over MCP.
- flint listen
Sandboxes
Each one has its own orders, customers, and webhook endpoints. New endpoints use JWT verification with their endpoint ID as the audience. The test key picks the sandbox, on the same host as live.
- POST /v1/sandboxes
Safe retries
Send an Idempotency-Key on any write; routes that move money require one. A retry returns the first response instead of charging again.
- Idempotency-Key
Dated versions
Versions are dated. Each version stays supported for at least 24 months after its successor, and you can roll back for 72 hours.
- Flint-Version
Docs your agent can read
A hosted MCP server serves the docs and endpoint schemas to Claude Code, Cursor, and other agents, read-only and with no key.
- developers.withflintpay.com/mcp
Conventions that hold on every route
- Money
- { "amount": 1943, "currency": "USD" }
- Pagination
- page_size, page_token, next_page_token
- Retries
- Idempotency-Key, required where money moves
- Tracing
- request_id on every response
- Modes
- one host; the key picks test or live
Agents that act on real orders
flint mcp serve gives an agent the CLI’s commands through five MCP tools, running on your machine with your key, and the key never appears in the agent’s tool calls. In live mode, sensitive and irreversible writes wait for a person.
08Pricing
3.79% + 35¢ per card payment, no monthly fee.
One processing fee covers Flint and Stripe's processing, so there is no second bill to reconcile. The sandbox is free and needs no credit card.
Core payments
- Cards, wallets
- 3.79% + 35¢
- ACH debit
- 1.00%, $1 minimum, no cap
- Affirm
- 6.99% + 30¢
- Automatic tax
- 0.50% of taxed payments
- Monthly
- No monthly fee
- Sandbox
- Free, no credit card
Declined cards and expired authorizations cost nothing. Refunds carry no extra fee, though the original fees are kept, and card disputes pass through at cost. Every rate and fee →
| what the cafe order costs to take | ||
|---|---|---|
| The buyer pays | $19.43 | |
| Processing, 3.79% + 35¢processing_fee_money | $1.09 | |
| Automatic tax, 0.50%add_on_fees | $0.10 | |
| You netmerchant_net_money | $18.24 | |
09Compared
Flint orders beside Stripe PaymentIntents.
Stripe processes the cards either way. What changes is what you send, and how much of the sale your own database has to hold afterward.
| What you need | Flint orders | Stripe PaymentIntents API |
|---|---|---|
| What you send to charge | Flint: Line items. Flint computes subtotal, sales tax, and total, and the payment collects what the order owes. | Stripe: An amount and a currency, both required. No line items on the call. |
| Where the sale is recorded | Flint: On the order: line items, tax, every payment and refund, and the balance still owed. | Stripe: Stripe's fulfillment guide lists saving line items and payment details, and updating stock, in your own database. |
| Refunding one item | Flint: Name the line item and quantity. Its share of the tax comes back with it, and over-refunds are rejected. | Stripe: An amount against a charge or PaymentIntent, up to what is left. No line item parameter. |
| US domestic card rate | Flint: 3.79% + 35¢, no monthly fee, with the order, hosted checkout, item refunds, and the dashboard included. | Stripe: 2.9% + 30¢, no monthly fees. |
Refunding one item on Stripe today? The refund takes an amount, so the line’s price, its share of the tax, and what is left to refund all come from your code. How to refund a line item in Stripe walks through the workarounds, and Flint vs Stripe compares the two need by need. Weighing more providers? The best payment APIs for developers are ranked with their published prices.
reviewed 2026-10-23 against the Flint API and the sources below · corrections: Flint Help
10Start
Take a test payment on a real order.
Node
CLI
Test keys start with flint_test_ and run in a sandbox with its own data, so nothing there touches real money. Live keys start with flint_live_, on the same host and the same paths. Pay with 4242 4242 4242 4242, any future expiry, and any CVC. 4000 0000 0000 9995 declines with insufficient_funds, and 4000 0025 0000 3155 asks for 3D Secure. Testing guide · Quickstart
Then read these, in order
- 01
- 02
- 03
- 04
- 05
- 06
Or run npm install -g @flintpay/cli && flint signup to create your account and a sandbox key from the terminal. CLI guide
Sources
Where each outside claim comes from.
A PaymentIntent is created with amount and currency, both required. Neither the create call nor its other parameters take line items. Stripe API reference: Create a PaymentIntent
docs.stripe.com · checked 2026-10-23A refund names a Charge or a PaymentIntent and takes an optional amount, up to what is left unrefunded. No parameter targets a line item. Stripe API reference: Create a refund
docs.stripe.com · checked 2026-10-23Your fulfill_checkout function retrieves the Checkout Session with its line items, checks payment_status, fulfills, and records fulfillment status. Saving payment details and line items in your own database and updating inventory or stock records are listed as things you might want it to do. Stripe docs: Fulfill orders
docs.stripe.com · checked 2026-10-23Domestic cards cost 2.9% + 30¢ per successful transaction, with no monthly fees. Stripe: Pricing
stripe.com · checked 2026-10-23
last reviewed 2026-10-23 · corrections: Flint Help
FAQ
Questions developers ask about the Flint payment API.
What is a payment API?
A payment API lets your software charge a buyer and learn the result: your server asks to collect money, a payment processor moves it, and the API reports whether the payment succeeded, failed, or needs the buyer to do something, such as pass 3D Secure. Flint's payment API starts one step earlier. You send the line items, Flint computes the total with sales tax, and every payment, refund, and dispute is recorded on that order.
What does order-first mean?
The amount is computed, never typed. You create an order with line items, Flint works out the subtotal, tax, and total on its server, and every way of paying settles against that balance: hosted checkout, your own form, a saved card, a payment link, or an invoice. Refunds name line items, declines come back on the order’s payment attempt, and the order.paid webhook tells your backend the sale is paid. Why Flint is orders-first
Who processes the payments, and who handles card data?
Stripe processes every card, on a processing account Flint sets up and runs for you, so you don't open a Stripe account and one processing fee per payment covers both. Card details go from the buyer's browser to Stripe and never reach your server.
Which payment methods does the Flint payment API support?
ACH debit, Affirm, Apple Pay, Card, Google Pay. Every method settles into the same order, so refunds, webhooks, and reports work the same however the money arrived. ACH debit is a one-time debit in USD with instant bank verification, and Affirm appears for eligible purchases when you turn it on.
Do I have to use Flint's hosted checkout?
No. The same order can be paid on Flint’s hosted page, in your own form with Stripe Elements, with a saved card from your backend, or through a payment link or an invoice. For your own form, the order’s payment_collection names the Stripe account and publishable key to mount Elements with, so there is no credential to look up. Embedded payments guide
Can I charge a card without creating an order?
Yes. When your own system is the record of the sale, POST /v1/payment-intents takes an amount and the payment options, with your own id in external_reference_id. Orders, hosted checkout, refunds by line item, and subscriptions are on the same API and the same keys when you want them.
Can I authorize a card now and capture later?
Yes. Create the payment intent with capture_method set to manual, and confirming places a hold on the card, which usually lasts seven days. Capture some or all of it, or cancel to release it. Hosted checkout and payment links always capture right away, so manual capture is for payments your server drives. Manual capture guide
How do I know a payment succeeded?
From the order.paid webhook or a backend read of the order, never from the browser redirect: a buyer can close the tab before it loads, and anyone can open a success URL. Fulfill when payment_status is paid. Card payments usually finish inside the pay request, but ACH debit can stay processing for days, and 3D Secure hands the buyer to their bank partway through. Webhooks guide
What does the Flint payment API cost?
Card and wallet payments cost 3.79% + 35¢, with no monthly fee. ACH debit costs 1.00%, $1 minimum, no cap, and Affirm 6.99% + 30¢ on eligible purchases. Automatic sales tax adds 0.50% to payments where Flint collects tax. One processing fee covers Flint and Stripe’s processing, so there is no separate processor bill, and the sandbox is free with no credit card. Every rate and fee
Is there an SDK for the Flint payment API?
Yes. @flintpay/node for TypeScript and JavaScript and flintpay/flint for PHP, both for server-side code and generated from the same contract as the API reference. @flintpay/cli is a command-line client that forwards sandbox webhooks to localhost with flint listen and serves its commands to AI agents over MCP. The API itself is plain HTTP and JSON, so none of them are required.
Who can use Flint?
Businesses in the United States. Buyers can pay with cards issued anywhere; international cards add 1.50% to the card rate. Sign up on the web, or run flint signup in a terminal to create an account and a sandbox key.
Is Flint an alternative to Stripe?
Flint runs on Stripe: Stripe processes every card, and Flint adds the order, sales tax, hosted checkout, line-item refunds, and the dashboard around the payment. Compared with building on Stripe’s PaymentIntents API directly, you send line items instead of an amount, and you read the order instead of keeping your own copy of the sale. Flint vs Stripe
Build on the order from the first payment.
The sandbox is free, with no credit card and no sales call. The first order you create there has the same shape as the ones your dashboard, your buyers, and your agents will read in production.
Or run npm install -g @flintpay/cli && flint signup to create your account and a sandbox key from the terminal. CLI guide