arvyo.
← Back to Blog

June 2026

Integrating bKash into Your E-commerce Stack

International cards and PayPal alone do not cover how most Bangladeshi customers pay online. bKash is table stakes for retail, food delivery, and B2C SaaS with local billing.

Integration is more than a checkout button: you need secure token handling, payment status webhooks, idempotent order updates, and clear UX when a user completes payment on their phone.

Architecture patterns

We usually place a small payment service between your storefront and bKash APIs. The storefront creates an order in pending state, redirects or shows a QR, and listens for webhook confirmation before marking paid and triggering fulfilment.

Headless setups like ShopZero expose payment hooks through the commerce API so any frontend — web or mobile — uses the same backend rules.

Common pitfalls

Double-charging on webhook retries, orders stuck in pending when users close the app, and mismatched amounts between cart and gateway are frequent bugs. We design idempotency keys and admin tools to reconcile failed payments.

Testing in sandbox before go-live saves support headaches. We document runbooks for ops teams when payments fail or timeout.

Building for Bangladesh

Whether you use ShopZero or a custom stack, we can integrate bKash, Nagad, and other gateways. Reach out via shopzero.bd or arvyo.com for integration help.