The Freelancing Starter Kit
Templates, a pricing calculator and 40 cold-email scripts that landed my first ten clients on Upwork.
Live demo: the button works. No money moves on this 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.
Templates, a pricing calculator and 40 cold-email scripts that landed my first ten clients on Upwork.
Live demo: the button works. No money moves on this site.
Blogger can only host static pages, so a tiny Worker talks to the bKash API for you. Nothing sensitive ever touches your blog.
blogger.js turns any element with data-bkash-amount into a payment button.
Shows the amount, then asks your Worker to create a bKash payment.
Your GitHub PagesNumber, OTP and PIN go into bKash's own page. Your site never sees them.
bkash.comThe Worker confirms with bKash. Your post gets a success event and the transaction ID.
Your Blogger postBehind 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.
No PINs or OTPs on your pages, no secrets in your theme. The popup only ever redirects to bKash domains.
Two lines in the post's HTML view, a gadget, or your theme. Buttons keep working when posts load dynamically.
Anyone can edit HTML in their browser. Set PRICES on the Worker and it refuses any tampered amount.
If an in-app browser blocks the popup, checkout continues in the same tab and returns to your post.
bkash:success, bkash:failure and bkash:cancel let you reveal a download link or redirect.
Before you have credentials, the full flow runs as a simulation, so you can design your post today.
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.
<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>
Start in the bKash sandbox with test wallets, then switch one setting to go live.