Skip to content

Checkout for your website

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

Real Switro screens with sample data. Prices and features may change.

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

  1. Create a checkout

    Your server sends Switro the order.

  2. Your customer pays

    They check the order and approve the payment in their wallet.

  3. 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
Create a checkout
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?
How long does a checkout last?
Does the success page prove that someone paid?
Which networks can customers use?

Add checkout to your website

Create an account, get a test key and try it on Devnet.

Create account