Open source Free, MIT licensed

Accept bKash payments on your Blogger site

Paste a “Pay with bKash” button into any Blogspot post. Customers pay on bKash's own secure page, and your merchant credentials stay on a free serverless Worker, never in your blog.

  • No server to maintain
  • Works in any Blogger theme
  • bKash Tokenized Checkout
yourblog.blogspot.com/2026/09/freelancing-starter-kit.html
September 24, 2026 · Resources

The Freelancing Starter Kit

Templates, a pricing calculator and 40 cold-email scripts that landed my first ten clients on Upwork.

Starter Kit (PDF + templates) ৳990

Live demo: the button works. No money moves on this site.

How it works

Your blog shows the button. bKash handles the money.

Blogger can only host static pages, so a tiny Worker talks to the bKash API for you. Nothing sensitive ever touches your blog.

  1. Customer clicks Pay

    blogger.js turns any element with data-bkash-amount into a payment button.

    Your Blogger post
  2. Checkout popup

    Shows the amount, then asks your Worker to create a bKash payment.

    Your GitHub Pages
  3. Pays on bKash

    Number, OTP and PIN go into bKash's own page. Your site never sees them.

    bkash.com
  4. Receipt on your post

    The Worker confirms with bKash. Your post gets a success event and the transaction ID.

    Your Blogger post

Behind the scenes: a free Cloudflare Worker keeps your bKash app key, secret, username and password. It is the only part that talks to the bKash API: it creates the payment, executes it, and can re-check any payment on request.

Why this approach

Built for how Blogger actually works

Safe by design

No PINs or OTPs on your pages, no secrets in your theme. The popup only ever redirects to bKash domains.

Copy, paste, publish

Two lines in the post's HTML view, a gadget, or your theme. Buttons keep working when posts load dynamically.

Prices you can trust

Anyone can edit HTML in their browser. Set PRICES on the Worker and it refuses any tampered amount.

Works on phones

If an in-app browser blocks the popup, checkout continues in the same tab and returns to your post.

Events you can hook

bkash:success, bkash:failure and bkash:cancel let you reveal a download link or redirect.

Demo mode built in

Before you have credentials, the full flow runs as a simulation, so you can design your post today.

The whole integration

Two lines in your post

Load the script from your GitHub Pages fork and mark any button with a price. Style it yourself or keep the built-in bKash look.

  • A Blogger blogPosts, pages, gadgets or the theme
  • A free GitHub accountHosts the checkout popup on GitHub Pages
  • A free Cloudflare accountRuns the Worker that holds your credentials
  • bKash merchant credentialsTokenized Checkout: sandbox first, then live
Follow the 15-minute setup
<script src="https://yourname.github.io/bkash-blogger-payment/blogger.js"></script>

<button data-bkash-amount="500" data-bkash-product="Premium eBook">
  Pay with bKash
</button>
<script>
  document.addEventListener('bkash:success', function (event) {
    console.log('Paid!', event.detail.trxID);
  });
</script>

Ready to take your first payment?

Start in the bKash sandbox with test wallets, then switch one setting to go live.