Setup on Blogger
- Host
bkash-payment.js
andblogger.js
or use the versions in this repository. - 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
.