Short answer
There are two ways to accept Nagad online. The quickest is through a payment aggregator such as SSLCommerz, aamarPay or ShurjoPay, where Nagad appears alongside cards and other wallets. The second is a direct Nagad merchant integration: you become a Nagad merchant, request online payment (PGW) access, receive sandbox credentials and keys, and implement Nagad's checkout flow, in which your server initialises a payment with encrypted, signed data, the customer approves it in Nagad, and your server verifies the result before fulfilling the order. Direct integration gives a native Nagad experience but more security work.
Aggregator or direct integration?
| Factor | Through an aggregator | Direct Nagad API |
|---|---|---|
| Setup effort | One integration covers many methods | Separate integration just for Nagad |
| Checkout experience | Customer picks Nagad on the aggregator page | Nagad-branded flow from your checkout |
| Contract | With the aggregator | Directly with Nagad |
| Security work | Mostly handled by the aggregator SDK | You manage key pairs, encryption and signature checks |
| Best for | Most shops and startups | High Nagad volume, apps wanting a native flow |
Merchant onboarding
- Open a Nagad merchant account with business documents such as trade licence, TIN and bank details.
- Request online payment gateway access for your website or app domain.
- Receive sandbox merchant ID and the public key material described in Nagad's integration documents, and generate your own key pair as instructed.
- Register your callback URL and, after testing, go through Nagad's review for production access.
How the direct checkout flow works
- Your server sends an initialisation request with merchant ID, order ID and timestamp, where sensitive data is encrypted with Nagad's public key and signed with your private key.
- Nagad responds with encrypted data you decrypt and verify, including a payment reference and challenge.
- Your server completes the order request with the amount and callback URL, and receives a redirect URL.
- The customer is redirected to Nagad to enter wallet number, OTP and PIN.
- Nagad redirects back to your callback URL with a payment reference and status.
- Your server calls the verification endpoint and only fulfils the order if status, amount and order ID match.
Security details to get right
- Key storage — keep your private key outside the code repository, in a secret store or server environment variables.
- Clock sync — signed requests include timestamps; keep server time synchronised (NTP).
- Verify every callback — never trust status values in the redirect URL alone.
- Idempotency — a callback may be retried; process each payment reference once.
- Logging without secrets — log request IDs and statuses, never keys or full card or wallet data.
Testing before go-live
Test successful payments, wrong OTP, cancelled payments, timeouts and a customer closing the browser mid-payment. Confirm that orders stay pending until verification and that a later verification call can complete them. If you also accept bKash directly, keep a shared payment table so finance can reconcile both wallets in one report.
How DreamIT can help
DreamIT has integrated payments, messaging and e-commerce systems for Dream Group brands and client projects. If you need help with Nagad payment gateway integration, we can scope the integration, test it end to end and hand it over with documentation. Contact DreamIT.
Frequently asked questions
Can I accept Nagad without a direct merchant API?
Yes. Most payment aggregators in Bangladesh include Nagad on their hosted checkout, which is the simplest route for many businesses.
What documents do I need for a Nagad merchant account?
Typically a trade licence, TIN, bank account details and owner identification, but requirements vary by business type. Check Nagad's current merchant checklist.
Why does Nagad's API use encryption and signatures?
Encrypting sensitive fields and signing requests proves the request came from your server and protects data in transit. Follow the current documentation exactly.
Can I use Nagad in a mobile app?
Yes. Apps usually call your own backend, which runs the Nagad flow and returns a URL or deep link for the customer to authorise.
Sources and further reading
Editorial note: this guide is written for general information and reviewed by the DreamIT team. We do not publish prices or fees we cannot source; always confirm current pricing, fees and requirements with the provider before you decide. Last reviewed 27 Nov 2026.
Related guides
- bKash Payment Gateway Integration: A Developer's Checklist
- Payment Gateways in Bangladesh: How to Choose and Get Approved
- SSLCommerz Integration: A Step-by-Step Guide for Developers
- Bulk SMS in Bangladesh: Masking vs Non-Masking, APIs and BTRC Rules
- Courier API Integration in Bangladesh: Automating Parcels from Order to COD
- How to Choose a Digital Marketing Agency in Bangladesh Without Wasting Your Budget
- All integration & e-commerce guides

