Skip to content
SDK preview. Packages are not publicly published yet — use REST / cURL, or the local development artifacts.

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.

Text
Your server ──(secret key)──▶ PayTaka API ──▶ checkout_url ──▶ your customer pays
                                   │
                                   └──▶ signed webhook ──▶ your server fulfils the order

Start 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 useFor
Node.js SDKNode.js / TypeScript servers
Next.js helpersNext.js App Router routes and webhooks
RESTPHP, Laravel, Java / Spring Boot, Go, Python, curl — anything that speaks HTTP; available today
Android and iOS checkout SDKsOpening checkout from a native app and handling the return
React Native and FlutterThe same pattern with standard link handling

Concepts in one minute#

  • Payment — one request to collect an amount. It starts PENDING and ends PAID, CANCELLED or REVERSED.
  • 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.