How payments work
How payments work
- Configure a project: receiving wallets, return URLs, webhook and server secret.
- Create one v2 session for an order, save its identity and pricing, then open its returned checkout URL.
- The customer selects an available route. Checkout issues an attempt with its own saved token, network, address, exact amount and deadline. Follow those current instructions once; do not reconstruct the token amount or assume permanent amount reservation.
- BramaPay observes the chain and waits for an eligible confirmed transfer. Partial transfers do not accumulate. Expiry stops new payment, but a timely transfer may confirm later; use server finality fields.
- Verify
payment_session.paid, read authoritative session status and match the saved order/project/mode/currency/pricing. Deduplicate both event and order, then fulfill once. A child invoice or redirect must not fulfill the session again.
Tokens go directly to the merchant wallet. A shared address and exact amount cannot establish payer intent: an unrelated transfer can match another eligible payment. Investigate wrong or additional transfers before requesting more money. See the quick start.