Settlement modes
Fluxa supports direct and custodial settlement. The selected channel determines where funds go; the operator enables payment modes per merchant. Self-service accounts start with fiat, Stripe, e-wallet and custodial-crypto modes disabled until reviewed and explicitly enabled. Inspect your channels and each order’s settlement_mode instead of assuming every external merchant settles directly.
Direct settlement (non-custodial)
Direct means the funds go straight into your own account and the platform keeps only its fee (none at all on your own Stripe key). It comes in three forms — self-hosted on-chain channels, Stripe Connect and your own Stripe key — and all share the same guarantees: every paid order nets to zero in your fluxa balance, there is no withdrawal step, and fluxa never holds the funds, so it cannot refund them from a balance: on-chain and Stripe Connect orders cannot be refunded through fluxa (refund_unsupported), and an order paid on your own Stripe key is refunded on your own Stripe account with your key.
On-chain
Self-hosted on-chain channels (USDT/USDC on TRON, Base, BSC, Polygon, …) settle directly to your own wallet. The customer pays a single-use deposit address; once the required confirmations are reached, fluxa sweeps the net amount (after fees) straight to the settlement address you configured — the platform treasury keeps only the fee, and fluxa never retains your principal.
- Your platform balance for these currencies stays at ~0 by design: you are paid on-chain, not from a withdrawable balance, so there is no withdrawal step and no frozen funds.
- A settlement address is required before a live charge can be created (per chain kind: one
0xaddress serves all EVM chains, TRON needs its ownT…address — see Account). - Orders cannot be refunded through the platform (
refund_unsupported) and these currencies cannot be paid out — the funds were never held by fluxa. Refund customers off-platform if needed. - Confirmation is driven by fluxa's own chain watcher; the
settlement.completedwebhook carries the on-chain sweep transaction. - A collection below the channel's minimum sweep amount is held in its deposit address (the transfer would cost more than it moves). It is swept automatically together with your next regular collection on that chain, or once your held amounts on that chain reach the minimum.
- Because settlement is non-custodial, there is no chargeback or dispute path: the on-chain transfer is final, and there is no custodial balance for the platform to claw back.
Stripe Connect
When the platform operator links your own Stripe account (a Stripe Standard account, connected over Stripe's OAuth), card charges you create on the stripe channel are created on your Stripe account as direct charges. You are the merchant of record: the customer's payment lands in your Stripe balance, Stripe pays it out to you on your own payout schedule, and fluxa collects its fee as a Stripe application fee on each payment. Stripe's own processing fees are charged to your Stripe account.
- Linking. The operator sends a one-time authorization link to the email address registered on your fluxa account (valid for 24 hours; sending a new one invalidates the old). Open it, sign in to Stripe and connect the account you want to be paid into. The platform then reviews and activates it — the connection does not take effect until then. You are emailed at every step (link sent, account connected, activated, disabled, disconnected, unlinked), and the portal's payment methods page shows the current status. If you did not request a link, ignore it and tell the platform.
- Charging. Keep passing
channel: "stripe": while your link is active, fluxa routes the charge to your Stripe account automatically. The platform's internal Connect channel is never listed by Channels and cannot be named directly (channel_not_supported). - Fee. The platform fee is fixed when the charge is created: it is computed from the platform's fee schedule, rounded to the currency's smallest unit, and sent to Stripe as the application fee. It must be below the charge amount (
amount_not_above_fee), and the amount itself must be a whole number of the currency's smallest unit (invalid_amount). - Ledger. Each paid order records the
creditand thefee, then a negativesettlemententry that nets it back to zero — the money is in your Stripe account, not in a withdrawable fluxa balance. See Ledger. - Refunds and disputes. Refund the customer from your own Stripe Dashboard; a platform refund returns
409 refund_unsupported. Chargebacks are handled in your Stripe Dashboard too. fluxa mirrors refunds and lost disputes reported by Stripe onto the order (refunded/partially_refunded, plus thepayment.refundedwebhook) without touching your fluxa balance; a dispute you later win leaves the orderrefunded. A Konbini refund (or another refund Stripe pays only after emailing the customer for their bank details, such as PromptPay, Boleto or a bank transfer) is mirrored only once the customer has submitted them and Stripe starts paying it out; one the customer never answers within 45 days, or that you cancel, is never mirrored. - No silent fallback. While the link is disabled or disconnected,
stripecharges fail with409 stripe_connect_inactive— they never fall back to the platform's custodial Stripe. Only the platform unlinking your account returns your Stripe charges to custodial processing. A charge also fails with409 stripe_account_not_readywhile Stripe has not yet enabled charges on your account. - Test and live are separate. Each environment is linked on its own; charges made with a test API key only ever use the test link.
- Late payments. If a customer completes a Stripe checkout after the fluxa order expired, the money is already in your Stripe account and the order is not reopened; fluxa emails you so you can fulfil the order or refund it from your Stripe Dashboard.
Your own Stripe key
Instead of a platform-managed Connect link, you can run your card charges on your own Stripe account by saving your own Stripe secret key and webhook signing secret in the merchant portal (Payment methods → My Stripe account, one card per environment). Checkout Sessions are then created with your key on your account: the customer's payment lands in your Stripe balance and Stripe pays it out to you on your own payout schedule. Because the money never passes through the platform, fluxa charges no platform fee on these charges — not even a negotiated fee rate. Stripe's own processing fees are charged to your Stripe account.
- Setup in Stripe. Do this per environment (live and test are configured separately). In the Stripe Dashboard open Developers → Webhooks and add an endpoint with the URL shown in the portal (
https://pay.fluxa.cash/webhooks/stripe_merchant_<env>_<merchant_id>), listening to Events on your account, with these events:checkout.session.completed,checkout.session.async_payment_succeeded,checkout.session.async_payment_failed,checkout.session.expired,charge.refunded,refund.updated,refund.failed,charge.dispute.funds_withdrawn,charge.dispute.funds_reinstated,charge.dispute.created,charge.dispute.closedandradar.early_fraud_warning.created(refund.updatedandrefund.failedfollow a refund that waits for the customer's bank details, such as a Konbini refund, until Stripe pays it out; the last three drive thepayment.dispute_*webhooks), pluspayment_intent.succeeded,payment_intent.processing,payment_intent.payment_failed,payment_intent.canceledandpayment_intent.requires_actionif you take embedded payments (then also save your publishable key,pk_..., in the portal).payment_intent.requires_actioncarries Konbini vouchers: an embedded Konbini payment reports its voucher only through it, and with a restricted key it is also how a hosted Checkout payment's voucher reaches you. Copy the endpoint's signing secret (whsec_...). - Saving the key. Paste the signing secret and a secret key (
sk_live_.../sk_test_...) or a restricted key (rk_live_.../rk_test_..., with write access to Checkout Sessions and PaymentIntents and read access to Charges, Refunds and Account, plus write access to Refunds if you refund through fluxa) into the portal card for that environment. The key's mode must match the environment. fluxa checks the key with Stripe before saving it: a key Stripe rejects returns400 invalid_secret_key, a Stripe that cannot be reached returns502 stripe_unavailable, and a signing secret that is not awhsec_value returns400 invalid_webhook_secret. The publishable key is optional and only needed for embedded payments; one of the other mode returns400 invalid_publishable_key, and saving again without one keeps the stored key unless the new secret key belongs to another Stripe account. Only the account owner can save or remove the key (403otherwise); every member can see its masked status (key prefix and last four characters, plus the Stripe account id, name, email and country). - Charging. Keep passing
channel: "stripe"; payment links and subscriptions keepstripetoo. While your key is saved for an environment,stripecharges in that environment run on it. The internal channel behind it is never listed by Channels and cannot be named directly (channel_not_supported). - Connect takes precedence. If the platform has linked your Stripe account through Stripe Connect in an environment, that link serves the environment, and saving your own key there is refused with
409 stripe_connect_linked. - Ledger. Each paid order records the
creditand a negativesettlemententry that nets it back to zero; there is no platform fee. The proceeds are in your Stripe account, so payouts are capped at your custodial balance as for every direct mode. See Ledger. - Refunds. Refund through fluxa with Refund an order (or the portal): fluxa creates the refund on your Stripe account with your key and your idempotency key, records Stripe's cumulative refunded amount on the order and sends
payment.refunded(withreason: "refund") once per change, whether the API call or thecharge.refundedyour webhook reports arrives first. Refunds you make in your Stripe Dashboard are mirrored the same way. A Konbini refund you make there is recorded, andpayment.refundedsent, only once the customer has submitted their bank details and Stripe starts paying it out (reported byrefund.updated), not when you create it; one the customer never answers within 45 days, or that you cancel, is never recorded, and withoutrefund.updatedon your endpoint none is. If such a refund fails after it was recorded (the customer's bank sent it back and the customer did not answer again), the order keeps its refunded amount and the platform operator is alerted. Your fluxa balance is not touched. Once you remove the key, refunds through fluxa return409 refund_unsupported; refund in your Stripe Dashboard or save the key again. An order Stripe settled with Konbini returns409 refund_method_unsupported: Stripe refunds Konbini only after emailing the customer for their bank details, which can take up to 45 days or fail, so refund it in your Stripe Dashboard. PayPay refunds go back to the customer's wallet at once and work through fluxa like cards. - Disputes. Handle chargebacks from your own Stripe Dashboard. When Stripe withdraws the disputed funds (as a chargeback opens), fluxa mirrors that onto the order (
refunded/partially_refunded, plus thepayment.refundedwebhook withreason: "dispute") without touching your fluxa balance; subscribe topayment.dispute_createdandpayment.dispute_closedto follow the dispute itself. Once funds of an order have been withdrawn, refunds of it through fluxa return409 refund_disputed. - Your other integrations. fluxa marks every Checkout Session and PaymentIntent it creates with
metadata.fluxa_order_idand matches webhook events to orders only by that marker. Events from your other integrations on the same Stripe account are acknowledged (200) and ignored, and so are events from the other mode (a test event on the live endpoint, or the reverse). - No silent fallback. If your saved key is enabled but cannot be used right now,
stripecharges fail with503 stripe_account_unavailable— they never fall back to the platform's custodial Stripe. Check the keys in the portal or contact the platform. - Removing the key. Remove turns the key off: later
stripecharges in that environment return to the platform's custodial Stripe. Only your key can cancel a checkout or PaymentIntent on your account and verify its webhooks, so removing it, or saving a key of another Stripe account, returns409 embedded_charges_openwhile any order on your own account is still awaiting payment, hosted or embedded, or a closed one's payment attempt has not been canceled yet (usually within a minute of the order closing). Wait for those orders to expire, or cancel them, and try again.
Settle on received
By default an on-chain order settles only once the full amount (less the channel tolerance) has arrived; a shortfall parks it awaiting a top-up. A charge created with settle_on_received settles instead once the confirmed amount received reaches its min_received_amount (or the amount less the channel tolerance, if lower), and credits exactly what arrived. The fee is pro-rated on the amount received and never exceeds the fee on the full amount. Transfers confirmed after the order is paid are credited to it as well and reported as payment.additional_received; the order's received_amount holds the cumulative total.
Custodial modes
Custodial channels credit your Fluxa balance. External merchants can use them when the operator enables the corresponding payment mode and configures an available channel. Creating an account alone does not provision a provider channel.
Gateway custody (hosted crypto)
Hosted crypto gateways (e.g. a NOWPayments-backed gateway, Binance Pay) are a custodial mode in which the provider watches the chain and confirmed payments credit a custodial fluxa balance that is settled out via Payouts. Refund support depends on the provider. Availability requires operator enablement for your account.
Fiat processing
Local payment aggregators (bank transfer / QR) are a custodial mode for payments made in local fiat. Confirmed payments credit a custodial fluxa balance; refunds are supported where the processor supports them, and this is the only mode in which a chargeback/dispute is reversed against a platform-held balance. Availability requires operator enablement for your account.
Comparison
Compare the funds flow of the channel you use. Merchant availability is controlled by the operator for every mode.
| Direct settlement | Gateway custody | Fiat processing | |
|---|---|---|---|
| Merchant access | Enabled by operator | Enabled by operator | Enabled by operator |
| Platform holds your funds | No (fee only) | Yes | Yes |
| Settles to | Your own wallet or your own Stripe account | fluxa balance | fluxa balance |
| Withdrawal step | None | Payouts | Payouts |
| Platform refunds | Own Stripe key: yes, on your Stripe account; on-chain and Connect: no | Provider-dependent | Provider-dependent |
| Chargeback risk | On-chain: no; Stripe: in your own Stripe account | No | Yes |
| Setup prerequisite | Settlement address (on-chain), a linked Stripe account (Connect) or your own Stripe key saved in the portal | None | None |
The settlement_mode field
Every order is stamped at creation with the funds-flow mode it was created under:
- Name
settlement_mode- Type
- string
- Description
direct(non-custodial direct settlement — on-chain, Stripe Connect or your own Stripe key) orcustodial(everything else). Immutable for the life of the order — it reflects how this order's money actually flowed, even if the channel is reconfigured later.
Branch on it to decide, per order, whether a platform refund is possible and whether the proceeds live in your fluxa balance.
Channel capabilities expose the same axis: each entry returned by Channels carries settlement (direct / custodial) alongside kind, so you can group your enabled channels into the three modes in your own UI.
How a charge resolves to a channel
Choose a channel available to your account; it determines the settlement mode. For local fiat such as LianLian, pass the channel code explicitly and omit network.
- Pass
channelexplicitly to use a specific channel.channel: "stripe"on an account with an active Stripe Connect link, or with your own Stripe key saved for that environment, runs on your own Stripe account; the order'schannel_codeis then the platform's Connect channel or your own-key channel (stripe_merchant_<env>_<merchant_id>) rather thanstripe, and retrying with the samemerchant_order_idandchannel: "stripe"still returns that order. - Or omit
channeland passnetwork+currencyfor crypto routing: self-hosted direct channels are preferred, with a configured custodial gateway as a fallback subject to account permissions and the asset guard below. See Charges.
One routing guard to know: an asset fluxa settles direct (on any network) is never silently routed through a custodial gateway on a network fluxa doesn't self-host — that credit would land in a custodial balance you cannot pay out (the payout guard blocks direct-settlement currencies). Such requests fail with no_route.
The platform operator can disable whole modes for an account; a live charge through a disabled mode is rejected with payment_mode_disabled (403). Test-mode charges are unaffected. Charges on your linked Stripe account or your own Stripe key belong to the Stripe (card) mode — the same switch as the platform's card processing — not to the on-chain direct mode.