Headless WooCommerce
Headless WooCommerce checkout on your own domain.
Keep WooCommerce for your catalog, stock, and fulfillment, and let Flint run checkout. Your backend turns the Store API cart into a Flint order, Flint calculates the sales tax and the total, and the buyer pays by card, Apple Pay, or Google Pay on your domain, with 3D Secure on the same page. When the order is paid, one webhook writes it into WooCommerce admin.
3.79% + 35¢ on cards · no monthly fee · free sandbox · no credit card
use Flint\{Client, ClientOptions, RequestOptions};
$flint = new Client(new ClientOptions(
baseUrl: 'https://api.withflintpay.com',
apiKey: getenv('FLINT_API_KEY'),
));
// 1. The Store API cart becomes an order. Prices are already in cents.
$lineItems = [];
foreach ($cart['items'] as $item) {
$lineItems[] = [
'type' => 'custom',
'name' => $item['name'],
'quantity' => (string) $item['quantity'],
'unit_price_money' => [
'amount' => $item['prices']['price'],
'currency' => 'USD',
],
'fulfillment' => ['requirement' => 'none'], // WooCommerce ships it
'tax' => [
'taxable' => true,
'line_item_tax_category' => 'physical_goods',
],
];
}
$order = $flint->orders->create([
'external_reference_id' => $cartKey,
'line_items' => $lineItems,
'tax' => [
'enabled' => true,
'calculation' => ['mode' => 'automatic', 'price_mode' => 'additive'],
'location' => [
'address_source' => 'provided',
'address_type' => 'shipping_address',
'address' => $shipTo,
],
],
], new RequestOptions(idempotencyKey: "order-$cartKey"));
// 2. The shipping rate the buyer picked in WooCommerce. Flint taxes it.
$flint->orders->addCharge($order->order_id, [
'charge' => [
'name' => $rate['name'],
'type' => 'shipping_fee',
'amount_money' => ['amount' => $rate['price'], 'currency' => 'USD'],
'tax' => ['taxable' => true],
],
], new RequestOptions(idempotencyKey: "ship-$cartKey"));
// 3. What Stripe Elements needs to mount on your page. No secrets in it.
$collection = $flint->orders->get($order->order_id)->payment_collection;
// 4. The browser posts back a single-use credential. Charge the order.
$result = $flint->orders->pay([
'order_id' => $order->order_id,
'body' => [
'action' => 'pay',
'client_action_type' => 'stripe',
'payment_source' => ['credential_type' => 'stripe_confirmation_token', 'stripe' => ['confirmation_token' => $confirmationTokenId]],
'expected_outstanding_money' => $shownTotal,
'buyer_contact' => ['email' => $email],
],
], new RequestOptions(idempotencyKey: "pay-$cartKey-1"));
echo $result->order_payment_attempt->status; // succeededThe backend half of checkout on PHP 8.2 or later. You never send a total: Flint computes it from the cart's lines and the shipping rate, and charges what the order still owes.
Store API cart in · paid WooCommerce order out · no WordPress plugin · PHP and Node SDKs
01Choose your checkout
Hosted on your subdomain, or built into your pages.
Both are Flint checkout. They collect payment for the same order, send the same order.paid webhook, and write the same record into WooCommerce, so launching on one and moving to the other changes only the payment step.
| Compare | Flint hosted checkout | Your own checkout page |
|---|---|---|
| Where it runs | Flint hosted checkout: pay.cedarandstone.com, a subdomain you own, or Flint’s checkout.withflintpay.com with no add-on | Your own checkout page: cedarandstone.com/checkout, inside the frontend you already have |
| What you build | Flint hosted checkout: Create the order, open a session, redirect. Flint renders the checkout. | Your own checkout page: Your checkout screen. Stripe Elements renders the card fields and wallet buttons in it, and your backend makes four Flint calls. |
| Payment methods | Flint hosted checkout: Card, Apple Pay, Google Pay, saved cards, and ACH debit and Affirm once you turn them on | Your own checkout page: Card, Apple Pay, and Google Pay. A headless checkout session adds saving cards, and ACH debit and Affirm once you turn them on. |
| 3D Secure | Flint hosted checkout: On the hosted page | Your own checkout page: On your page, through Stripe.js |
| Look | Flint hosted checkout: Your logo, colors, font, and corner radius from branding settings | Your own checkout page: Your markup and your CSS, with no Flint mark |
| Cost beyond the payment fee | Flint hosted checkout: $15 a month for the custom domain, live mode only | Your own checkout page: Nothing |
$launch = $flint->checkoutSessions->create([
'type' => 'order',
'order_id' => $order->order_id,
'redirects' => [
'success_url' => 'https://cedarandstone.com/thanks',
'cancel_url' => 'https://cedarandstone.com/cart',
],
], new RequestOptions(idempotencyKey: "session-$cartKey"));
// Send the buyer here, unchanged. The URL carries their access.
header('Location: ' . $launch->url);Runs after the order and shipping calls. Flint adds the session and order ids to your success URL, and the order.paid webhook is what you fulfill from.
curl -X POST https://api.withflintpay.com/v1/custom-domains \
-H "Authorization: Bearer YOUR_LIVE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "type": "checkout", "hostname": "pay.cedarandstone.com" }'One call with a live key and the $15 a month add-on. Flint returns two DNS records to publish, issues and renews the certificate, and registers the hostname for Apple Pay and Google Pay.
Building your own page instead? Your backend reads the order’s collection guidance, Stripe Elements renders the fields in your markup, and your backend pays the order. The six steps walk through it call by call.
Your own page
- payment_collection
- POST /v1/orders/{order_id}/pay
- surface: headless
02How it works
From the Store API cart to a paid WooCommerce order.
Your storefront keeps reading products and the cart from WooCommerce. At checkout your backend makes four Flint calls, and one webhook puts the paid order into WooCommerce admin with its stock already counted down.
Turn the cart into an order
POST /v1/ordersRead the cart with the buyer's Cart-Token and send its lines to Flint. Store API prices are already in minor units, the same unit Flint's amounts use. Each line says fulfillment none, because WooCommerce ships the order, and the shipping address is the tax location. Leave WooCommerce's own tax calculation off so Flint's figure is the only one.
From the Store APIGET /wp-json/wc/store/v1/cart Cart-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9... { "items": [ { "id": 731, "name": "Ceramic dripper", "quantity": 2, "prices": { "price": "2400", "currency_code": "USD", "currency_minor_unit": 2 } }, { "id": 744, "name": "Filter papers", "quantity": 2, "prices": { "price": "900", "currency_code": "USD", "currency_minor_unit": 2 } } ], "shipping_address": { "address_1": "540 Broad Street", "city": "Augusta", "state": "GA", "postcode": "30901", "country": "US" }, "shipping_rates": [ { "package_id": 0, "shipping_rates": [ { "rate_id": "flat_rate:3", "name": "Flat rate", "price": "800", "selected": true } ] } ] }To Flintcurl -X POST https://api.withflintpay.com/v1/orders \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Idempotency-Key: order-wc-cart-7f3a9c" \ -d '{ "external_reference_id": "wc-cart-7f3a9c", "line_items": [ { "type": "custom", "name": "Ceramic dripper", "quantity": 2, "unit_price_money": { "amount": 2400, "currency": "USD" }, "fulfillment": { "requirement": "none" }, "tax": { "taxable": true, "line_item_tax_category": "physical_goods" }, "metadata": { "wc_product_id": "731" } }, { "type": "custom", "name": "Filter papers", "quantity": 2, "unit_price_money": { "amount": 900, "currency": "USD" }, "fulfillment": { "requirement": "none" }, "tax": { "taxable": true, "line_item_tax_category": "physical_goods" }, "metadata": { "wc_product_id": "744" } } ], "tax": { "enabled": true, "calculation": { "mode": "automatic", "price_mode": "additive" }, "location": { "address_source": "provided", "address_type": "shipping_address", "address": { "line1": "540 Broad Street", "city": "Augusta", "state": "GA", "postal_code": "30901", "country": "US" } } } }'Add the shipping rate the buyer picked
POST /v1/orders/{order_id}/chargesWooCommerce priced shipping in the cart, so carry the selected rate across as a shipping charge. Flint taxes it where the order goes, along with the items, recomputes the total, and holds the balance every payment settles against.
curlcurl -X POST https://api.withflintpay.com/v1/orders/ord_1kmn0aExample/charges \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Idempotency-Key: ship-wc-cart-7f3a9c" \ -d '{ "charge": { "name": "Flat rate", "type": "shipping_fee", "amount_money": { "amount": 800, "currency": "USD" }, "tax": { "taxable": true }, "metadata": { "wc_rate_id": "flat_rate:3" } } }'what Flint computed Ceramic dripper, quantity 2line_items[0] $48.00 Filter papers, quantity 2line_items[1] $18.00 Subtotalpricing_amounts.subtotal_money $66.00 Flat rate shippingpricing_amounts.charge_money $8.00 Tax, Augusta GApricing_amounts.tax_money $5.92 Totalpricing_amounts.total_money $79.92 Still owedsettlement_amounts.outstanding_money $79.92 Change a line, the rate, or the address and every figure is recomputed. Your storefront displays these amounts as returned. Mount Stripe Elements on your page
GET /v1/orders/{order_id}Read the order and pass its payment_collection block to the browser as returned. It names the Stripe account, the publishable key, the amount, and the wallets to offer, and it holds no secrets.
200 OK{ "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": 7992, "currency": "USD" }, "payment_options": ["card", "apple_pay", "google_pay"], "payment_method_creation": "manual" } } } } }your checkout pageconst stripe = Stripe(collection.stripe.publishable_key, { stripeAccount: collection.stripe.account_id, }); const guidance = collection.stripe.elements; // Stripe Elements takes processor method types. Apple Pay and Google Pay ride on card. const STRIPE_METHOD_TYPES = {card: "card", apple_pay: "card", google_pay: "card", affirm: "affirm", ach_debit: "us_bank_account"}; const paymentMethodTypes = [...new Set(guidance.payment_options.flatMap((option) => STRIPE_METHOD_TYPES[option] ?? []))]; const elements = stripe.elements({ mode: guidance.mode, amount: guidance.amount_money.amount, currency: guidance.amount_money.currency.toLowerCase(), paymentMethodCreation: guidance.payment_method_creation, paymentMethodTypes, }); elements .create("payment", { // Show only the wallets Flint offers; Stripe's default can show others. wallets: { applePay: guidance.payment_options.includes("apple_pay") ? "auto" : "never", googlePay: guidance.payment_options.includes("google_pay") ? "auto" : "never", }, }) .mount("#payment-element"); // on submit: a single-use credential, posted to your backend await elements.submit(); const { error, confirmationToken } = await stripe.createConfirmationToken({ elements }); if (error) throw error; await fetch("/checkout/pay", { method: "POST", body: JSON.stringify({ confirmation_token: confirmationToken.id }), });Card details go from the buyer's browser to Stripe. They never reach your server or Flint's.
Pay the order from your backend
POST /v1/orders/{order_id}/paySend the credential the browser created and the total the buyer approved. Flint confirms the payment and settles the order in the same request. If the order changed after the buyer saw the total, Flint refuses before it charges.
curlcurl -X POST https://api.withflintpay.com/v1/orders/ord_1kmn0aExample/pay \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Idempotency-Key: pay-wc-cart-7f3a9c-1" \ -d '{ "action": "pay", "client_action_type": "stripe", "payment_source": { "credential_type": "stripe_confirmation_token", "stripe": { "confirmation_token": "ctoken_1kmn0aExample" } }, "expected_outstanding_money": { "amount": 7992, "currency": "USD" }, "buyer_contact": { "email": "ada@example.com" } }'200 OK{ "data": { "order": { "order_id": "ord_1kmn0aExample", "status": "closed", "payment_status": "paid", "settlement_amounts": { "paid_money": { "amount": 7992, "currency": "USD" }, "outstanding_money": { "amount": 0, "currency": "USD" } } }, "order_payment_attempt": { "order_payment_attempt_id": "opat_1kmn0aExample", "status": "succeeded", "is_resumable": false } } }A decline arrives in this same response as one of 24 codes, and the order stays open for another card.
Run 3D Secure on your page
POST /v1/orders/{order_id}/pay · action "resume"When the issuer asks for authentication, the pay call returns a typed action instead of a URL. Your page hands it to Stripe.js, the buyer authenticates without leaving your storefront, and your backend resumes the same attempt with no new credential.
200 OK, authentication required{ "data": { "order_payment_attempt": { "order_payment_attempt_id": "opat_1kmn0aExample", "status": "requires_action", "is_resumable": true, "pending_actions": [ { "action_type": "payment_authentication", "client_action": { "stripe": { "account_id": "acct_1kmn0aExample", "publishable_key": "pk_test_1kmn0aExample", "payment_intent": { "stripe_js_call": "handle_next_action", "client_secret": "pi_1kmn0aExample_secret_1kmn0aExample" } } } } ] } } }browser, then backend// This Stripe.js path requires client_action_type: "stripe" on pay. // Omission returns a Flint URL instead. Use this secret only with handleNextAction; // it can also confirm the underlying payment with another card. // in the browser, on your checkout page const action = attempt.pending_actions[0].client_action.stripe; await stripe.handleNextAction({ clientSecret: action.payment_intent.client_secret, }); // then your backend resumes the same attempt. No new credential. await flint.orders.pay( { order_id: orderId, body: { action: "resume", order_payment_attempt_id: attemptId }, }, { idempotencyKey: `resume-${attemptId}` }, );One attempt, start to finishThe whole challenge happens on cedarandstone.com. The order is paid once, by the attempt that started it. Write the paid order into WooCommerce
order.paidFulfill from the webhook, never from the browser, which a buyer can close before it hears back. Create the WooCommerce order through its REST API with set_paid true: WooCommerce moves it to Processing and reduces stock, and your team fulfills it in the admin they already use. Retries carry the same webhook_event_id, so store it and the write-back runs once.
POST /webhooks/flint{ "webhook_event_id": "whev_1kmn0aExample", "event_type": "order.paid", "payload_version": 2, "mode": "live", "merchant_id": "mer_1kmn0aExample", "created_at": "2026-10-23T14:00:21Z", "data": { "object": { "order_id": "ord_1kmn0aExample", "external_reference_id": "wc-cart-7f3a9c", "status": "closed", "payment_status": "paid", "pricing_amounts": { "total_money": { "amount": 7992, "currency": "USD" } }, "settlement_amounts": { "paid_money": { "amount": 7992, "currency": "USD" }, "outstanding_money": { "amount": 0, "currency": "USD" } } } } }Into WooCommercePOST /wp-json/wc/v3/orders Authorization: Basic <consumer key : consumer secret> { "payment_method": "flint", "payment_method_title": "Card via Flint", "set_paid": true, "transaction_id": "ord_1kmn0aExample", "billing": { "first_name": "Ada", "email": "ada@example.com" }, "shipping": { "first_name": "Ada", "address_1": "540 Broad Street", "city": "Augusta", "state": "GA", "postcode": "30901", "country": "US" }, "line_items": [ { "product_id": 731, "quantity": 2 }, { "product_id": 744, "quantity": 2 } ], "shipping_lines": [ { "method_id": "flat_rate", "method_title": "Flat rate", "total": "8.00" } ] }The Flint order id goes in transaction_id, so support gets from a WooCommerce order to the payment that settled it in one step.
Events your handler subscribes to
- order.paid
- checkout_session.paid
- refund.succeeded
- order.partially_refunded
- order.refunded
Each event carries a snapshot of the object it is about, and both SDKs verify the signature against the raw request body. 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.
reviewed 2026-10-23 against the published API and the WooCommerce REST API docs · corrections: Flint Help
03Refunds
Refund one dripper. The tax and the stock come back.
Name the line item and the quantity. Flint works out what that unit sold for, returns its share of the tax, and refuses a refund larger than what is left. Record the same refund in WooCommerce and the dripper goes back into stock.
curl -X POST https://api.withflintpay.com/v1/refunds \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: refund-wc-1042-dripper" \
-d '{
"refund_type": "targets",
"order_id": "ord_1kmn0aExample",
"reason": "customer_changed_mind",
"line_items": [
{ "order_line_item_id": "li_1kmn0aExample", "quantity": 1 }
]
}'{
"data": {
"refund_id": "ref_1kmn0aExample",
"order_id": "ord_1kmn0aExample",
"status": "succeeded",
"amount_money": { "amount": 2592, "currency": "USD" },
"line_item_allocations": [
{
"order_line_item_id": "li_1kmn0aExample",
"quantity": 1,
"refunded_money": { "amount": 2592, "currency": "USD" },
"tax_refund_mode": "automatic",
"automatic_refund": {
"subtotal_money": { "amount": 2400, "currency": "USD" },
"tax_money": { "amount": 192, "currency": "USD" },
"total_money": { "amount": 2592, "currency": "USD" }
}
}
]
}
}$24.00 for the dripper plus $1.92 of tax. You sent a line item id and a quantity, and no amounts.
| one dripper, refunded | ||
|---|---|---|
| Ceramic dripper, quantity 1automatic_refund.subtotal_money | $24.00 | |
| Its share of the taxautomatic_refund.tax_money | $1.92 | |
| Refundedamount_money | $25.92 | |
POST /wp-json/wc/v3/orders/1042/refunds
Authorization: Basic <consumer key : consumer secret>
{
"amount": "25.92",
"reason": "Flint refund ref_1kmn0aExample",
"api_refund": false,
"line_items": [{ "id": 311, "quantity": 1, "refund_total": 24 }]
}api_refund false records the refund without calling a gateway, because Flint already returned the money. api_restock is on by default, so the dripper goes back into stock.
Refund by line item, by charge, by amount, or the whole order with one call, or refund an amount from the Flint dashboard. The refund.succeeded event tells your backend when the refund succeeds, so the WooCommerce record follows the money. Refunds guide
04Checkout details
Wallets, tax, shipping, and coupons come with the order.
Each of these is a field on the order or one call beside it, so none of them turns into a project of its own.
Apple Pay and Google Pay
Register each checkout hostname once and serve it over HTTPS. The wallets render in the same Payment Element as the card fields and settle into the same order. On a Flint custom domain, Flint registers the hostname for you.
- POST /v1/payment-method-domains
- elements.payment_options
US sales tax
Automatic tax calculates sales tax from the shipping address, on the items and the shipping charge, for 0.50% of payments where Flint collects it. Already run a tax engine? Send its result in external mode.
- tax.calculation.mode
- tax.location
- pricing_amounts.tax_money
Shipping
Carry the WooCommerce rate across as a shipping charge, or move shipping to Flint: delivery methods with zones, rate tables, pickup, and live rates from your own server, quoted and chosen at checkout.
- shipping_fee
- POST /v1/delivery-methods
- POST /v1/delivery-quotes
Coupons
Send the discount WooCommerce already applied as a named manual discount, or let buyers enter Flint promotion codes. Either way it lands in the order's totals, and automatic tax is calculated on the discounted price.
- discounts[].manual.amount_money
- discounts[].promotion.promotion_code
- pricing_amounts.discount_money
Declines and retries
A decline comes back in the pay response as one of 24 codes, and the order stays open for another card. Every write takes an Idempotency-Key, so a retry never creates a second order or a second charge.
- order_payment_attempt.status
- last_payment_error.code
- Idempotency-Key
Signed-in buyers
Put a Flint customer on the order and their saved cards pay it, so a returning buyer never retypes a card number. A headless checkout session lets a buyer save a new card while they pay.
- customer_id
- payment_source.payment_method_id
- save_payment_method
Build your own checkout, step by step · Embedded payments with Stripe Elements
05Compared
Three ways to take payment on a headless WooCommerce store.
Flint gives a headless WooCommerce store a checkout API of its own, documented field by field and on Stripe underneath. The two routes inside WooCommerce run payment through a gateway plugin's Store API support or through the WordPress checkout page.
| What you need | Flint | Store API checkout endpoint | WordPress checkout page |
|---|---|---|---|
| Where the buyer pays | Flint: Your own page, or Flint's hosted checkout on a subdomain you own | Store API checkout endpoint: Your page, through a gateway plugin that supports the Store API | WordPress checkout page: The Checkout page WooCommerce creates in WordPress |
| What the payment request carries | Flint: One documented body: payment_source, expected_outstanding_money, and buyer_contact | Store API checkout endpoint: payment_data key and value pairs that each gateway plugin defines | WordPress checkout page: The Checkout block's form, submitted on the WordPress site |
| What comes back | Flint: A payment attempt: succeeded, one of 24 decline codes, or a 3D Secure action your page runs | Store API checkout endpoint: payment_result: a status, gateway details, and a redirect_url | WordPress checkout page: The order-received page on the WordPress site |
Where the other two are strong. The WordPress checkout page runs every gateway and checkout extension the store already has installed. The Store API endpoint keeps the payment inside WooCommerce, so its order and refund screens work through the gateway plugin as they always have.
Want the Store API detail? What WooCommerce core does with payment_data, quoted file by file, is in WooCommerce Store API payments.
Sources
The checkout endpoint takes a payment_method and payment_data, which WooCommerce's docs say each payment gateway expects differently, referring developers to the gateway plugin's authors. It returns payment_result with payment_status, payment_details, and a redirect_url. WooCommerce Store API: Checkout API
developer.woocommerce.com · checked 2026-10-23Cart items carry their price in minor units with the currency's minor unit, and the cart lists shipping rates with the one the buyer selected. WooCommerce Store API: Cart API
developer.woocommerce.com · checked 2026-10-23A Cart-Token header identifies the cart instead of cookies, for headless interaction with carts. WooCommerce Store API: Cart Tokens
developer.woocommerce.com · checked 2026-10-23The Checkout page is one of the WordPress pages WooCommerce creates, and it contains the Checkout block. WooCommerce: WooCommerce pages
woocommerce.com · checked 2026-10-23set_paid marks an order paid, sets its status to processing, and reduces stock. transaction_id and shipping_lines are order fields. WooCommerce REST API: Create an order
woocommerce.github.io · checked 2026-10-23With api_refund false, WooCommerce records a refund without calling the payment gateway. api_restock, true by default, restocks the selected line items. WooCommerce REST API: Create a refund
woocommerce.github.io · checked 2026-10-23
last reviewed 2026-10-23 · corrections: Flint Help
What it costs
Stripe processes every card. You pay Flint one fee per payment.
The card rate covers Stripe’s processing, so there is no second bill and no Stripe account to open. On the $79.92 order above, a domestic card costs $3.38 and automatic tax $0.40, which is $3.78 in all.
ACH 1.00%, $1 minimum, no cap · Affirm 6.99% + 30¢ · every fee on the pricing page
06Start
From a sandbox key to a paid test order.
PHP
Node
CLI
Test keys start with flint_test_ and belong to a sandbox with its own data, so nothing you do there moves real money. Live keys start with flint_live_, on the same host and the same paths. Build an order from a test cart and pay it with 4242 4242 4242 4242, any future expiry, and any CVC.
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
FAQ
Questions about headless WooCommerce checkout.
Can WooCommerce do headless checkout?
Yes, in two halves. The Store API runs the cart over JSON: items, coupons, shipping rates, and totals, with a Cart-Token header in place of cookies. Payment goes through the Store API checkout endpoint and a gateway plugin that supports it, with payment_data keys that each plugin defines, or through the WordPress checkout page. Flint replaces the payment half with a documented API: your backend creates an order from the cart, the buyer pays on your domain, and the paid order is written back into WooCommerce. How the Store API payment layer works
What is the fastest way to add a checkout to a headless WooCommerce store?
Create a Flint order from the Store API cart, open a hosted checkout session for it, and redirect the buyer to its URL. Flint's hosted checkout takes cards, Apple Pay, and Google Pay, runs 3D Secure on its page, and sends the order.paid webhook your backend writes into WooCommerce. With the custom domain add-on, $15 a month, it opens on a subdomain you own, such as pay.yourstore.com, in live mode. You can build your own checkout page later on the same order and the same webhook.
Do I have to leave WooCommerce?
No. WooCommerce stays your catalog, cart, stock, and order admin, and WordPress stays your CMS. Flint takes the payment and writes the paid order into WooCommerce through its REST API, so your team fulfills from the admin they already use. If you later want the catalog, promotions, inventory, or subscriptions on the same API as the payment, Flint has those too.
Does it work with Next.js, Faust.js, Nuxt, or Astro?
Yes. Flint has no requirements for your frontend. The browser talks to Stripe.js and to your backend, and your backend calls Flint with your API key. That backend can be a Next.js route handler, any Node server, or a PHP endpoint on the WordPress server you already run.
Is there a PHP SDK?
Yes. flintpay/flint is Flint’s official PHP SDK, for PHP 8.2 and later with the cURL and JSON extensions and no framework dependency. It is generated from the same API contract as the Node SDK, @flintpay/node, so every public operation is a typed method in both, and both verify webhook signatures. The API is plain HTTP and JSON, so neither is required. SDK guide
How do paid orders and stock get back into WooCommerce?
From your webhook handler. When order.paid arrives, create the WooCommerce order through its REST API with set_paid true, which sets it to Processing and reduces stock, and put the Flint order id in transaction_id. Deliveries are retried with the same webhook_event_id, so store it and the write-back runs once. Refunds go back the same way, with api_refund false so WooCommerce records the refund without calling a gateway.
How does 3D Secure work without sending buyers to WordPress?
Flint returns a URL action by default when authentication is needed. Open client_action.url in a redirect, popup, iframe, or in-app browser, then resume the attempt from your backend. The Stripe SDK examples explicitly send client_action_type: "stripe" instead. Use the returned client secret only with the SDK next-action call: it can also confirm the underlying payment with another card. With URL actions, Flint's API returns no Stripe client secret, but Stripe's authentication page receives it during hosted 3DS2. Flint returns charges made with a payment method it did not approve.
Do Apple Pay and Google Pay work on my storefront's domain?
Yes. Register each checkout hostname once with POST /v1/payment-method-domains and serve checkout over HTTPS, and the wallet buttons appear in the same Stripe Payment Element as the card fields. When hosted checkout runs on a Flint custom domain, Flint registers that hostname for you. Apple Pay and Google Pay setup
How is sales tax calculated?
Flint calculates US sales tax on the order from the address you send, on the items and on shipping charges, and returns it in the order’s amounts. Automatic tax costs 0.50% of payments where Flint collects tax. It covers general and physical goods, digital goods, software, and services. For food, clothing, medical goods, and admission, or if you already run a tax engine, send the engine’s result in external mode, and Flint records it on the order and reverses it on refunds. Sales tax guide
Can I keep my WooCommerce shipping rates and coupons?
Yes. Send the rate the buyer picked in the Store API cart as a shipping charge, and Flint taxes it with the order. Send a coupon WooCommerce already applied as a named manual discount. Or move them to Flint: delivery methods with zones, rate tables, pickup, and live rates from your own server, and promotion codes buyers enter at checkout.
Which payment methods can buyers use?
On your own page with your API key: cards, Apple Pay, and Google Pay. Hosted checkout and a headless checkout session on your page add ACH debit and Affirm once you turn them on, with Affirm for orders it approves. Every method settles into the same order, so refunds, webhooks, and reporting work the same way however the money arrived.
Who processes the cards?
Stripe processes every card payment. Card details go from the buyer's browser to Stripe and never reach your servers or Flint's. Flint sets up and runs the processing account, so there is one sign-up, one set of keys, and one fee per payment, with no Stripe account of your own to open.
What does it cost?
Cards cost 3.79% + 35¢, with no monthly fee. ACH 1.00%, $1 minimum, no cap, and Affirm 6.99% + 30¢. Automatic tax adds 0.50% of payments where Flint collects tax, and a custom domain for hosted checkout is $15 a month. The sandbox is free and needs no credit card. Pricing
How do I get started?
Sign up on the web, or create an account from your terminal with flint signup. The sandbox is free, with no credit card. Flint onboards US businesses, and buyers can pay from anywhere. Install the PHP or Node SDK, create an order from a test cart, and pay it with the 4242 test card. Quickstart
Give your WooCommerce storefront its own checkout.
Free sandbox, no credit card, no sales call. WooCommerce keeps the catalog and the admin, and Flint takes the payment on your domain.
Or run npm install -g @flintpay/cli && flint signup to create your account and a sandbox key from the terminal. CLI guide

