Concepts

Finality

Why Fianto shows the payer success at confirmed but marks an order paid and sends webhooks only at finalized, and what counts as proof of payment.

2 min read

A Solana transaction is confirmed first and finalized later. A confirmed block can still be rolled back; a finalized transfer cannot be reversed. Fianto uses both steps, for different readers: the payer is shown success at confirmed, and you are told only at finalized.

This page is about crypto payments on Solana. A card payment is never final in this sense: it can be refunded from the dashboard, and the cardholder can dispute it.

The steps of a one-time checkout
The steps of a one-time checkout, from your server to Solana and backYour serverFianto APICheckout pagePayer's walletSolanacreate session1send payer to url2payer signs3signed transaction4broadcast5confirmedpayer sees success6finalizedorder PAIDwebhooks7

Scroll sideways to see the whole diagram →

Show as text
  1. From your server, create a session with `POST /v1/checkout-sessions`. The first create returns its `url`; creating again for the same open order returns `url: null`, so reissue the link instead.
  2. Send the payer to that `url`: Fianto's hosted checkout page.
  3. The payer's wallet signs the transaction. The wallet only signs; it does not send.
  4. The checkout page hands the signed transaction to Fianto.
  5. Fianto broadcasts it to Solana, and rebroadcasts it when needed.
  6. When the transaction is confirmed, Fianto tells the checkout page, which shows the payer success. The order is not `PAID` yet.
  7. When it is finalized, the order becomes `PAID`, the payment `SUCCEEDED`, and Fianto sends `order.paid` and `checkout.session.completed` to your webhook endpoint — only at finalized.

What happens at each step

The payer's wallet only signs. Fianto broadcasts the signed transaction to Solana, rebroadcasts it when needed, and follows it.

StepPaymentWhat changes
Sent to SolanaPROCESSINGFianto follows the transaction.
ConfirmedCONFIRMEDThe checkout page, which asks Fianto for the status, shows the payer success. The order is not PAID yet, and no webhook is sent.
FinalizedSUCCEEDEDThe order becomes PAID and Fianto sends order.paid. When the session was still OPEN, it becomes COMPLETED and Fianto also sends checkout.session.completed.

At confirmed, the checkout page already shows the payer the receipt, "Payment received" or "You are subscribed". Your webhooks still wait for finalized. A payment can still fail after it was confirmed, so a CONFIRMED payment is not yet money you can count on.

Why webhooks wait for finalized

For a crypto payment, Fianto sends order.paid and checkout.session.completed only once it is finalized, because a confirmed block can still be rolled back. So, for a crypto payment, order.paid and checkout.session.completed are always about a transfer that cannot be reversed. The dashboard says the same about a crypto SUCCEEDED payment: "Finalized on Solana. The money is in your wallet and the transfer cannot be reversed."

Subscriptions follow the same rule: Fianto sends subscription.created when the subscribe transaction finalizes.

The payer's success screen is not your proof

None of what the payer's side sees waits for finalized: the receipt, its Continue to link to your success_url, and in popup mode the message the page posts to your success_url origin with status: 'succeeded'. None of them proves you were paid.

Fulfil only from finalized

Never fulfil because the payer reached your success_url or because the popup reported success. Fulfil from the order.paid webhook, or read the order from your server and check that it is PAID.

A payment can also finalize after its session has closed. See Payment lifecycle for what the order and the webhooks do then.

See also

Was this page helpful? Tell us

fianto.xyz

On this page