Introduction
Accept bKash and Nagad payments with a few lines of code — and try everything in test mode first.
PayTaka lets your website or app accept bKash and Nagad payments. You create a Payment from your server, send your customer to its checkout page, and PayTaka tells you when it is paid.
Your server ──(secret key)──▶ PayTaka API ──▶ checkout_url ──▶ your customer pays
│
└──▶ signed webhook ──▶ your server fulfils the orderStart in test mode#
Test mode moves no real money and needs no bKash or Nagad account, no PayTaka receiving setup and no Service Credit. You can create a payment, complete it with one call, and receive a signed webhook in a few minutes.
What you can use#
| You use | For |
|---|---|
| Node.js SDK | Node.js / TypeScript servers |
| Next.js helpers | Next.js App Router routes and webhooks |
| REST | PHP, Laravel, Java / Spring Boot, Go, Python, curl — anything that speaks HTTP; available today |
| Android and iOS checkout SDKs | Opening checkout from a native app and handling the return |
| React Native and Flutter | The same pattern with standard link handling |
Concepts in one minute#
- Payment — one request to collect an amount. It starts
PENDINGand endsPAID,CANCELLEDorREVERSED. - Checkout — the hosted page your customer pays on. You never handle their payment details.
- Webhook — a signed message PayTaka sends your server when something happens. It is how you learn a payment was paid.
- Test vs Live — two isolated environments with different secret keys (
pt_test_sk_…,pt_live_sk_…).
See Versioning and stability. The API version is v1 (/v1/...). It is separate from SDK package versions (@paytaka/sdk 0.x): the docs at /v1 describe the v1 API, whichever SDK version you use.