concave / bkash
Laravel Bkash Payment system intrigation package.
v1.0.3
2020-10-25 22:26 UTC
README
Laravel bKash integration package!
Installation
Step 01: Run Command composer require concave/bkash
Step 02: Run Command php artisan migrate
Step 03: Run Command php artisan vendor:publish --tag=public --force
Step 04: Open public/concave/config.json and fill with your credentials!
Step 05: Add Payment Button with mandatory attributes, data-payment-amount="" data-invoice-number="" data-payment-intent="" id="bKash_button"
For example, data-payment-amount="" is your payment amount like data-payment-amount="200" , data-invoice-number="" is your unique invoice number like data-invoice-number="EXT00354KHF" and data-payment-intent="" is intent like as data-payment-intent="sale"
Add Following code in footer
<script src="https://code.jquery.com/jquery-1.8.3.min.js" integrity="sha256-YcbK69I5IXQftf/mYD8WY0/KmEDCv1asggHpJk1trM8=" crossorigin="anonymous"></script>
<script id="myScript" src="https://scripts.sandbox.bka.sh/versions/1.2.0-beta/checkout/bKash-checkout-sandbox.js"></script>
<script> var base_url = "{{ url('/') }}"; var csrf = "{{ csrf_token() }}"; </script>
<script src="{{ asset('concave/bkash.js') }}"></script>