When to use hosted checkout
Use hosted checkout when:- You want to accept multiple coins without building a coin-picker UI
- You want Blockra to manage the deposit timer and UI state
- You are integrating Blockra into an existing e-commerce flow where a redirect is acceptable
Creating a checkout session
Create the session
Call The response contains the session
POST /checkout/sessions with the amount, currency, and optional redirect URLs. Requires the payments:write scope.id and the hosted url:Response
Redirect the buyer
Send the buyer to
data.url. Blockra’s checkout page lets them select a coin, see the exact deposit amount, and send payment from their wallet.Omitting the amount
If you omitamount from the request, Blockra’s checkout page will display an amount entry field so the buyer can specify how much they want to pay. This is useful for donation flows or open-ended invoices.
Pre-filling customer email
Passcustomer_email to pre-fill the email field on the checkout page and associate the payment with a customer record:

