Payments Integration · Dhaka

bKash, Nagad & SSLCommerz Integration in Dhaka

ঢাকায় bKash, Nagad ও SSLCommerz ইন্টিগ্রেশন

bKash, Nagad & SSLCommerz Integration in Dhaka — Digital Marketing Dhaka caricature illustration
IPN done right
কোনো drop অর্ডার নয়

bKash, Nagad, SSLCommerz and Stripe — integrated with proper server-side webhooks, refund flows and reconciliation, so your accountant stops chasing missing orders.

bKash, Nagad, SSLCommerz এবং Stripe — সঠিক সার্ভার-সাইড webhook, refund flow ও reconciliation সহ। accountant-এর missing order খোঁজা শেষ।

Quick answer

Payments integration — in one paragraph

Payment integration in Dhaka means bKash and Nagad Merchant / PRA checkout, SSLCommerz aggregator, and Stripe for international cards — all with server-side IPN webhooks, signature verification, idempotent handlers, refund flows and daily reconciliation. Digital Marketing Dhaka integrates BD payment stacks the way banks audit them — no dropped orders, no manual matching in spreadsheets.

ঢাকায় payment integration মানে bKash ও Nagad Merchant/PRA checkout, SSLCommerz aggregator ও international-এর জন্য Stripe — সার্ভার-সাইড IPN webhook, signature verification, idempotent handler, refund flow ও daily reconciliation সহ। Digital Marketing Dhaka এমনভাবে BD payment stack integrate করে যেভাবে ব্যাংক audit করে — কোনো dropped order নেই।

Why Dhaka

Why this matters for Bangladeshi businesses

Most Dhaka payment integrations are done from the frontend only — success page redirect = order confirmed. That's how brands lose 3–8% of orders every month: user pays bKash, network drops the redirect, order never marks paid, refund war starts on WhatsApp. Real integration means the server listens for the IPN, verifies the signature, and matches the transaction against the order — no matter what the browser does. That single change stops the leak.

ঢাকার বেশিরভাগ payment integration শুধু frontend-এ — success page redirect = order paid ধরে নেয়। ফলে প্রতি মাসে ৩-৮% অর্ডার হারায়: ইউজার bKash পে করে, network drop, order paid mark হয় না, WhatsApp-এ refund war। Real integration মানে সার্ভার IPN শোনে, signature verify করে, transaction order-এর সাথে match করে — browser যাই করুক।

What's included

Every piece we ship in this engagement

01

bKash Merchant + PRA integration

Both Tokenized Merchant Checkout and Personal Retail Account flows. Grant token refresh, execute payment, query payment, refund — all wrapped in a typed client with retry + logging.

02

Nagad Merchant integration

Nagad checkout with sensitive-data encryption (RSA + AES), payment initialization, callback signature verification, refund API — done to Nagad's actual production spec.

03

SSLCommerz aggregator

Sandbox → production migration, easy checkout + hosted checkout, IPN validation, refund + partial refund, EMI support, EPS integration for corporate cards.

04

Stripe for international cards

Payment Intents, subscriptions, tax, refunds, disputes, 3DS. Perfect for BD SaaS selling to GCC + EU diaspora buyers.

05

Idempotent server-side handlers

Every webhook handler is idempotent — duplicate IPNs from bKash never double-mark an order. Payment intent + order state machine enforced in Postgres.

06

Signed & verified webhooks

HMAC signature verification on every incoming webhook. Anonymous requests with random JSON get rejected before they touch business logic — no fake-order attacks.

07

Daily reconciliation report

Automated nightly job matches gateway settlement statements against your DB — mismatches emailed to accounts before your morning coffee.

08

Refund + partial-refund flows

Admin-side refund button, refund audit log, gateway refund API call, DB order state update, customer email — all in one atomic operation. No 'we'll refund tomorrow' via WhatsApp.

Our process

How we deliver it in Dhaka

01

Merchant onboarding help

We help gather bKash/Nagad merchant docs, coordinate KYC with the gateways, and get sandbox credentials in your name. Not just code — commercial setup too.

02

Sandbox build

Full checkout + IPN + refund built in sandbox, tested with production-shape data, screenshots signed off before touching production credentials.

03

Production cutover (BDT 1 tests)

Live merchant credentials, real BDT 1 test purchases end-to-end, refund verified, reconciliation report validated for 7 days.

04

Monitoring + on-call

Sentry alerts on failed webhooks, daily reconciliation email, monthly gateway performance review (drop rates, refund %, dispute rate).

Deep dive

The details that decide the outcome

The success-page-redirect fallacy

Frontend-only integrations mark an order paid when the browser lands on /success. This breaks constantly in Dhaka: users close the tab, redirect fails, mobile network drops. The truthful signal is the IPN webhook from the gateway to your server. We treat the redirect as UX only — the ledger updates only when the IPN is verified. That single architectural decision is worth 3–8% of monthly revenue on any BD ecommerce store.

Idempotency is not a nice-to-have — bKash sends duplicate IPNs

bKash and Nagad both retry IPNs when your server is briefly slow. If your handler isn't idempotent, you double-mark orders as paid, double-fire fulfilment, and double-send customer emails. We store a payment_intent row with a UNIQUE (gateway, gateway_txn_id) constraint — the second IPN hits the constraint and is silently deduped. Boring, correct, invisible to the user, and rock-solid.

Signature verification is the difference between production and a breach

Unverified webhook endpoints are open POST APIs. Attackers scan them, POST fake 'payment success' payloads, and free-checkout your store. Every gateway provides an HMAC signature on their IPN — we verify it in constant time before parsing the body. No signature match, no processing. This is 20 lines of code that prevents a category of attack most Dhaka merchants haven't heard of yet.

Reconciliation is where the money is actually made

Reconciliation catches the 1–3% of orders where the gateway captured the money but your DB didn't record it (or vice versa). Without a nightly recon job, that leak silently accumulates: BDT 3 lakh/month of 'ghost orders' on a BDT 1 crore store. Our recon runs at 2am, matches gateway settlement CSVs against your DB, and emails your accountant a diff. If it's zero, they know the day started clean.

Dhaka proof

What it looks like on the ground

A Mohakhali-based D2C skincare brand was losing 6% of bKash orders to the redirect-only pattern — around BDT 4.8 lakh/month at their volume. We swapped in signed IPN handlers with idempotent order state machines and daily reconciliation over 3 weeks. Dropped-order rate fell to 0.2% (network-level failures the gateway itself couldn't confirm). Recovered revenue: BDT 4.6 lakh/month, forever.

মহাখালীর একটি D2C skincare ব্র্যান্ড redirect-only pattern-এ ৬% bKash অর্ডার হারাচ্ছিল — মাসে ~BDT ৪.৮ লাখ। ৩ সপ্তাহে signed IPN + idempotent state machine + daily recon যোগ করলাম। Drop rate ০.২%-এ নামল, মাসে BDT ৪.৬ লাখ revenue recover — চিরকালের জন্য।

FAQ

Frequently asked questions

bKash PGW না PRA — কোনটা লাগবে?

B2C ব্যবসার জন্য PGW (Merchant Checkout) — অটোমেটেড, sandbox আছে, IPN pattern proper। PRA শুধু ম্যানুয়াল অ্যাকাউন্টে টাকা রিসিভ করলে — no automation।

How long does bKash merchant approval take?

Fresh application: 2–4 weeks in our experience. We help you prepare the KYC bundle correctly the first time to avoid rejection loops.

Can you take over a broken existing integration?

Frequently. Common fixes: add IPN handler, add signature verification, add idempotency, add reconciliation. Usually a 1–2 week engagement.

Do you handle disputes and chargebacks?

For Stripe international cards, yes — we build the evidence submission flow. For bKash/Nagad, disputes go through their support; we provide the transaction audit trail.

PGW না PRA?

B2C-তে PGW (Merchant Checkout) — automation ও IPN আছে।

bKash merchant approval কত সময়?

সাধারণত ২-৪ সপ্তাহ, KYC ঠিকভাবে প্রথমবারেই দিলে দ্রুত।

ভাঙা integration ঠিক করেন?

হ্যাঁ — IPN, signature, idempotency, reconciliation যোগ করি। ১-২ সপ্তাহের কাজ।

Dispute handle করেন?

Stripe-এ evidence flow বানাই। bKash/Nagad-এ audit trail সরবরাহ করি।

Free 30-min consult

Talk to a Dhaka specialist about payments integration

Share your number — a senior strategist will call you back within one business day with a short, honest audit and next steps.

No spamNo obligationReply in 24h
Service: Payments integration

No spam. Reply within 1 business day.

Ready to ship this in your next 30 days?

Book a free 30-min dev strategy call. We'll audit your current stack, site or app live and show you the biggest engineering + performance wins — no obligation.