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

statusWhen to fulfil
pendingNo — waiting for payment
verifyingNo — TrxID in, SMS not matched yet
verifiedYes — deliver / mark WooCommerce paid
failedNo — amount mismatch or bad TrxID
expiredNo — link timed out