Developers
Fast, secure, and flexible payments. Use our REST API to accept payments, manage links, and automate your workflows.
The PayWall API follows REST principles and uses JSON for request and response bodies. All requests are made over HTTPS.
Authenticate requests using Bearer tokens. Include your secret key in the Authorization header.
curl -X POST https://team.paywall.app/quickcheckout/YOUR-ACCOUNT-ID/ -H 'Authorization: Bearer sk_test_xxx' -H 'Content-Type: application/json' -d '{"amount":1000,"currency":"usd"}'
Create a one-time payment link and redirect your customer to a secure checkout hosted by PayWall.
curl -X POST https://team.paywall.app/quickcheckout/YOUR-ACCOUNT-ID/ -H 'Authorization: Bearer sk_test_xxx' -H 'Content-Type: application/json' -d '{
"amount": 10000,
"currency": "usd",
"success_url": "https://example.com/success",
"cancel_url": "https://example.com/cancel",
"name": "John Smith",
"email": "customer@example.com"
}'
await fetch('https://team.paywall.app/quickcheckout/YOUR-ACCOUNT-ID/', {
method: 'POST',
headers: {
'Authorization': 'Bearer sk_test_xxx',
'Content-Type': 'application/json'
},
body: JSON.stringify({ amount: 10000, currency: 'usd' })
})
{
"team_id": "1",
"name": "John Smith",
"email": "customer@example.com",
"order_id": "ABC1001",
"account_id": "acct_xxxxxxxxxxxxxxxx",
"payment_intent": {
"id": "pi_3MN60bITWiIE2bdDfrsghtFd",
"object": "payment_intent",
"amount": 10000,
"currency": "usd",
"status": "succeeded"
}
}
Receive real-time notifications about payment events at your endpoint.
{
"type": "payment_intent.succeeded",
"data": {
"id": "pi_3MN60bITWiIE2bdDfrsghtFd",
"amount": 10000,
"currency": "usd",
"status": "succeeded"
}
}
The API uses conventional HTTP response codes to indicate success or failure.
| Brand | Number | CVC | Expiry |
|---|---|---|---|
| Visa | 4242 4242 4242 4242 | Any 3 digits | Any future date |
| Mastercard | 5555 5555 5555 4444 | Any 3 digits | Any future date |
| American Express | 3782 8224 6310 005 | Any 4 digits | Any future date |
Create an account to get your API keys and start accepting payments in minutes.