Checkout
Hosted Checkout is a PCI-compliant payment page at checkout.swellpayments.com. Create a session, redirect the customer, and listen for webhooks.
Create a session
POST /v1/checkout/sessions
curl https://api.swellpayments.com/v1/checkout/sessions \
-H "Authorization: Bearer sw_test_..." \
-H "Content-Type: application/json" \
-d '{
"amount": 4999,
"currency": "usd",
"success_url": "https://yoursite.com/success",
"cancel_url": "https://yoursite.com/cancel",
"customer_email": "[email protected]"
}'Payment flow
Customer clicks Pay → session created → card/crypto processed → risk checks → payment authorized → webhook fired immediately → merchant order marked paid → dashboard updates live → payout scheduled.