Checkout for your website
Send customers from your website to a payment page that shows their whole order.


$121.00 total3 items, shipping and tax
You keep your cart. We host the payment page.
The whole order
Show each item, with shipping, tax and the total.
Signed webhooks
Hear about confirmed payments, and check that each message is from Switro.
Back to your website
Choose where customers go after they pay or cancel.
How it works
Create a checkout
Your server sends Switro the order.
Your customer pays
They check the order and approve the payment in their wallet.
Check and deliver
Your server checks the payment, then you deliver.
Start with one request
Make this request from your server. Switro replies with the checkout's ID and the address of its payment page.
- Work out the total on your server
- Keep your API key on your server
- Before you deliver, check the payment's status, checkout, amount and network with the API
curl https://www.switro.com/api/v1/checkout \
-H "Authorization: Bearer $SWITRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount_total": 118.00,
"amount_shipping": 9.00,
"amount_tax": 7.00,
"amount_currency": "USD",
"success_url": "https://example.com/success",
"cancel_url": "https://example.com/cart",
"items": [
{
"item_title": "Stoneware mug",
"item_quantity": 2,
"item_amount": 32.00
},
{
"item_title": "Serving bowl",
"item_quantity": 1,
"item_amount": 38.00
}
]
}'Questions and answers
Do I need a developer?
Yes. Your server creates each checkout and checks each payment. If you do not want to write code, use a payment link, an invoice or a store.
How long does a checkout last?
10 minutes. After that, check that the order is unpaid, then create a new checkout.
Does the success page prove that someone paid?
Not by itself. Anyone can open your success page. Always check the payment with the API before you deliver.
Which networks can customers use?
Solana. Customers pay with USDC or SOL, straight to your Solana wallet. You can choose to turn SOL payments into USDC. Your code stays the same.

