Setup on Blogger

  1. Host bkash-payment.js and blogger.js or use the versions in this repository.
  2. Open Blogger's theme editor and insert the following snippet where the button should appear:
<input id="amount" type="number" placeholder="Amount"/>
<button id="payBtn">Pay with bKash</button>
<script src="/path/to/bkash-payment.js"></script>
<script src="/path/to/blogger.js"></script>
<script>bkashBlogger.initButton('payBtn','amount');</script>

Replace the script paths with your own and update credentials inside bkash-payment.js.