API Keys
BraidPay API keys allow developers to securely connect their applications to BraidPay. Keys are scoped and environment-specific (Test or Live) to ensure proper access control. You can create, revoke,
Last updated
curl -X POST https://api.braidpay.com/v1/checkout-sessions \
-H "Authorization: Bearer sk_test_xxx123" \
-H "Content-Type: application/json" \
-d '{
"amount": 5000,
"currency": "usd",
"successUrl": "https://merchant.com/success",
"cancelUrl": "https://merchant.com/cancel"
}'
{
"id": "cs_test_123",
"checkoutUrl": "https://checkout.braidpay.com/cs_test_123"
}
{
"event": "payment.succeeded",
"data": {
"id": "cs_test_123",
"amount": 5000,
"currency": "usd",
"status": "succeeded"
}
}