Set up with a coding agent
Set up 402pay for me, follow the instructions on developer.402pay.co/quickstart
402pay is a non-custodial payments platform for high-risk businesses. Your server creates payments, customers pay on a hosted checkout, and every confirmed payment lands in a wallet only your business controls, so there's nothing to withdraw.
The API is a REST API. It takes and returns JSON, uses standard HTTP status codes, and authenticates with a secret key.
- Create a payment for an exact amount and send the customer to its checkout.
- Visa, Mastercard and American Express cards and eight coins on six networks, on one page.
- A signed event for every change, retried for about 28 hours if your server doesn't answer.
- Balances and transactions for the self-custody wallet every payment lands in.
Choose your integration
Every option lands payments in your wallet the same way. They differ in how much you build.
- No code
Payment link
Create a link in the dashboard and share it anywhere: your site, an invoice, a chat or a QR code.
- Code needed
- None
- Time
- Minutes
- Customization
- The link's name, price and currency, plus your checkout settings
- Best for
- One price for many customers, such as a product, a donation or a fixed invoice
- Recommended
Your server and hosted checkout
Your server creates a payment for each order and sends the customer to its checkout. A webhook says when it's paid.
- Code needed
- One API call and a webhook handler
- Time
- An afternoon
- Customization
- Amount, reference, metadata, redirects and expiry on every payment
- Best for
- Stores and apps with their own orders
- Most control
Your own checkout
Your server still creates the payment, and your app shows the payment screens itself, on the public checkout endpoints.
- Code needed
- The server calls, plus your own payment screens
- Time
- A few days
- Customization
- Every screen, in your app's own design
- Best for
- Apps that keep customers on their own pages
Popular tasks
Base URL
The API has two hosts. Wallet paths are relative to the wallet base URL: /wallet, everything under /wallet/ and /wallet-changes/, and /exchange-rates. Every other path is relative to the base URL. Both take the same secret key and answer in the same shapes, and each endpoint's page and samples show the full URL.
Where to next
- Accept your first payment in five steps, from a new account to a fulfilled order.
- Payments, checkouts, links, customers, events and your wallet, and how they fit together.
- Signed events for every change, retried for about 28 hours.
- The base URL, how requests and responses are shaped, and every endpoint.