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.
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.
Scroll sideways to see the whole diagram →
Show as text
- 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.
- Send the payer to that `url`: Fianto's hosted checkout page.
- The payer's wallet signs the transaction. The wallet only signs; it does not send.
- The checkout page hands the signed transaction to Fianto.
- Fianto broadcasts it to Solana, and rebroadcasts it when needed.
- When the transaction is confirmed, Fianto tells the checkout page, which shows the payer success. The order is not `PAID` yet.
- 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.
| Step | Payment | What changes |
|---|---|---|
| Sent to Solana | PROCESSING | Fianto follows the transaction. |
| Confirmed | CONFIRMED | The checkout page, which asks Fianto for the status, shows the payer success. The order is not PAID yet, and no webhook is sent. |
| Finalized | SUCCEEDED | The order becomes PAID and Fianto sends order.paid. When the session was still OPEN, it becomes COMPLETED and Fianto also sends checkout.. |
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. only once it is finalized,
because a confirmed block can still be rolled back. So, for a crypto payment, order.paid and
checkout. 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. 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