
Flow: Authenticate → Create Order → Initiate Payment → Poll Status (optional webhook)
Your client_id is bound to Test or Live mode. Requests must target the correct host; authentication will reject mismatched mode.
| Environment | Base URL |
|---|---|
| Test | https://staging.smepay.in |
| Live | https://extranet.smepay.in |
SMEPay Checkout Widget
Best for: Websites, web apps, quick integration
Direct API
Best for: Custom UI, mobile apps, server-to-server
client_id and client_secretAccess Token: Expires in 10 minutes (600 seconds)
Authorization: Bearer <YOUR_ACCESS_TOKEN>
Content-Type: application/jsonWhen payment status changes, we POST to your callback_url:
SUCCESS - Payment completedFAILED - Payment failedSecurity: Always validate using /order/validate endpoint before fulfilling order.
CREATED → INITIATED → PENDING → SUCCESS/FAILED
↓
EXPIRED