Payments API
Payment status
Poll from your backend after checkout. Fulfil only when status is verified.
GET/api/payments/:id
Auth: Bearer JWT
curl
curl http://localhost:4000/api/payments/987a15a8-c5d6-4e0d-94c6-523f8db581ee \
-H "Authorization: Bearer $TOKEN"GET/api/payments
Query: ?provider=bkash&status=pending&q=2041
status values
| status | When to fulfil |
|---|---|
| pending | No — waiting for payment |
| verifying | No — TrxID in, SMS not matched yet |
| verified | Yes — deliver / mark WooCommerce paid |
| failed | No — amount mismatch or bad TrxID |
| expired | No — link timed out |