DOCUMENTATION
Integrate TakaPay payments
TakaPay is a REST API plus a hosted checkout. Your server creates an invoice with an API key, the customer Send Money on bKash, Rocket, or Nagad, and TakaPay notifies your server via webhook when payment is verified — no login needed.
বাংলাদেশি ডেভেলপারদের জন্য: API key দিয়ে ইনভয়েস বানান → কাস্টমারকে /pay/id লিংক দিন → আমরা তোমার server-এ webhook পাঠাব → order fulfill করো।
BASE URL
http://localhost:4000/api/v1
All JSON. All routes need X-Api-Key: YOUR_STORE_API_KEY.
Payment loop
- 1.
POST /v1/payments— create invoice (API key) - 2. Redirect buyer to
/pay/{id} - 3. Buyer Send Money → submits TrxID on checkout
- 4. TakaPay Android app auto-forwards SMS receipt
- 5. TakaPay fires
payment.verifiedwebhook → your server fulfils
Quickstart
Create, pay, and verify in five minutes
Sandbox demo
Try checkout with a fake SMS
Authentication
Login and Bearer JWT
Create invoice
POST /api/payments
Hosted checkout
Redirect buyers to /pay/{id}
Verify TrxID
Match SMS + amount + provider
Payment status
Poll GET /api/payments/:id
SMS webhooks
Android relay → POST /api/webhooks/sms
Errors
HTTP codes and messages
Code examples
cURL, Node, PHP, WooCommerce