Get started

How money moves

What the payer signs, where the price and the service fee go, and when a payment counts as paid.

5 min read

A crypto payer pays with one Solana transaction that their own wallet signs. The price goes straight to the merchant's wallet and any service fee and network fee to Fianto, in the same transaction. Nothing is held in between. A card payment goes into the merchant's own Stripe account instead: see A card payment.

A one-time payment

How money moves in a one-time payment
How money moves in a one-time Fianto paymentPayer's walletsigns one transactionMerchant's walletthe priceFianto treasuryservice fee + network fee

Scroll sideways to see the whole diagram →

Show as text
  1. The payer's wallet signs one transaction, and Fianto's charging key co-signs it as the fee payer: Fianto pays its Solana network fee.
  2. That transaction sends the price in USDC straight to the merchant's wallet.
  3. In the same transaction, the service fee and the network fee (USDC) go to Fianto's treasury in one transfer — only when the fees are above zero.
  4. Fianto broadcasts the signed transaction and watches the chain. The price goes straight to the merchant's wallet and any service fee and network fee to Fianto, in the same transaction. Nothing is held in between.
  5. Subscriptions work differently: Fianto's charging key co-signs the subscribe transaction and signs each renewal, within the limits the on-chain program enforces.

The transaction the payer signs holds:

  1. Two compute-budget instructions.
  2. A USDC transfer of the price to the merchant's wallet. This transfer carries the session's reference, so Fianto can match it to the checkout.
  3. One USDC transfer of the service fee and the network fee to Fianto's treasury, only when they are above zero.

The payer signs it, and Fianto's charging key co-signs it as the fee payer: Fianto pays the Solana network fee. The wallet only signs: Fianto broadcasts the transaction, and rebroadcasts it when needed.

The network fee is a flat fee in USDC that the payer pays on top of the price and the service fee. It is a Fianto setting (currently 0.01 USDC), fixed on the order when its checkout is created; a checkout opened before one-time payments carried it has none. It is not the Solana network fee.

To pay, the payer needs:

  • a USDC token account that already exists and is not frozen,
  • the price plus the service fee and the network fee in USDC.

The payer needs no SOL. Fianto never creates token accounts, for the payer or for the merchant. The merchant's receiving wallet must already have a USDC token account, or creating a checkout fails with merchant_token_account_missing. Send that wallet any amount of USDC once to create it.

Scan to pay

On a one-time checkout, the payer can also scan a QR code with a phone wallet that supports Solana Pay. Fianto builds the same transaction and co-signs it as the fee payer. Here the payer's wallet signs it and also sends it to Solana. Fianto then follows it like any other payment. A scan the payer never finished does not show in your payments. See Scan to pay.

Confirmed, then finalized

A crypto payment's Solana transaction is first confirmed, then finalized. Fianto acts on each step differently:

StepWhat happens
ConfirmedThe checkout page shows the payer success.
FinalizedThe order becomes PAID, the payment SUCCEEDED, and Fianto sends order.paid and checkout.session.completed to your webhook endpoint.

The payer's success screen is not proof of payment

The payer sees success at confirmed, before the order is paid. Fulfil an order only from the order.paid webhook or from the order you read back from the API.

The service fee

The payer pays the service fee

Fianto's service fee is a percentage of the price set by Fianto, 0 % during the beta. It is added on top of the price and the payer pays it. It is rounded down in the payer's favour. It goes to Fianto's treasury in the same transaction, and only when it is above zero. A payment's checkout page always shows the fee on its own "Fianto fee" line.

The fee is fixed on the session when you create it, so a later change never alters a checkout that is already open.

A card payment

When the merchant has connected their own Stripe account and turned on card payments, the payer can be offered card instead. The checkout offers a card only when all of these hold:

  • the checkout is open, was not limited to crypto, and is a one-time payment or, with card subscriptions on, a subscription (more conditions apply: see Card subscriptions);
  • the amount is whole cents, from $1.00 to $999,999.99 (Fianto's own limit, not Stripe's);
  • the checkout can still stay open for the 31 minutes a Stripe checkout needs;
  • the merchant's Stripe connection is active with card payments on, and the merchant is approved and not suspended (so a merchant not approved yet is never offered card, on mainnet or on the devnet sandbox).

Otherwise the card is not offered. Stripe's own minimum depends on the currency the merchant's Stripe account settles in; Fianto set its $1.00 floor above Stripe's 0.50 USD minimum to allow for that.

The payer pays in Stripe's embedded checkout on the Fianto page, with no redirect. The card is charged in US dollars, 1:1 with USDC. The money goes into the merchant's own Stripe account: Fianto opens the card checkout with the merchant's own Stripe key, and the money never passes through Fianto. From there it is the merchant's Stripe balance and Stripe's payouts. See Card payments.

Fianto takes no fee on a card payment, and the payer pays no network fee. Stripe charges its own fees in the merchant's Stripe account.

Subscriptions work differently

What the subscribe transaction contains
The instructions in the subscribe transaction, who signs it and who paysone transaction, in this order1Set compute budget2Create USDC authorityonly when the wallet has none3Subscribebound to the plan's terms4Pull price → merchant's walletcarries the session reference5Pull fees → Fianto's treasuryservice fee + network fee, when above zerodashed: only sometimes included · the first period is charged herewho signspayer's walletFianto's charging keyco-signswho payspayerprice + fees in USDC, no SOLFianto's charging keySolana fee + both rentsthe charging key isthe fee payer

Scroll sideways to see the whole diagram →

Show as text
  1. Set the compute budget.
  2. Create the payer's USDC authority, only when the wallet has none.
  3. Subscribe, bound to the plan's terms.
  4. Pull the price to the merchant's wallet; this pull carries the session reference.
  5. Pull the service fee and the plan's network fee (USDC) to Fianto's treasury, in one pull, only when the fees are above zero.
  6. The first period is charged inside this transaction.
  7. The payer's wallet signs as the subscriber; the payer pays the price and the fees in USDC and needs no SOL.
  8. Fianto's charging key co-signs as the fee payer: it pays the Solana network fee and both rents (the subscription's account and, when it is created, the USDC authority).

To subscribe, the payer signs one subscribe transaction. It creates the payer's USDC authority when the wallet has none, subscribes to the plan, pulls the price to the merchant's wallet and pulls the service fee and the plan's network fee to Fianto's treasury when they are above zero. The first period is charged inside this transaction.

On a subscription the network fee is taken with every charge, the first one included, on top of the price and the service fee. Fianto fixes it when a plan is created (currently 0.01 USDC); plans created before it carry none. See Fees.

Who pays for the subscribe transaction

Fianto's charging key co-signs it as the fee payer. It pays the Solana network fee and the deposits (rent) for the subscription's account and, when this transaction creates it, the USDC authority. The payer pays only the price and the fees in USDC, and needs no SOL.

After that, Fianto's charging key takes each renewal, every 30 days or every 365 days as the price sets, and pays the Solana network fee for it. It can only take what the subscription's own on-chain terms allow: at most the plan amount per period (price, service fee and network fee), only to the plan's destinations, and nothing after the subscription is cancelled or expired.

A subscription keeps the wallet and the fees it started with. If the merchant's wallet or a fee changes, only new subscribers get the new ones.

See also

Was this page helpful? Tell us

fianto.xyz

On this page