You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://github.com/ellerbrock/open-source-badges/)
17
17
18
-
This is a Flutter package for [bKash](https://www.bkash.com/) BD Payment Gateway. This package can be used in flutter project. We created this package while working for a project and thought to made it release for all so that it helps.
18
+
This is a [Flutter package](https://pub.dartlang.org/packages/flutter_bkash) for [bKash](https://www.bkash.com/) BD Payment Gateway. This package can be used in flutter project. We created this package while working for a project and thought to made it release for all so that it helps.
19
19
20
20
## How to use:
21
21
@@ -29,7 +29,7 @@ This will add a line like this to your package's `pubspec.yaml` (and run an impl
29
29
30
30
```
31
31
dependencies:
32
-
flutter_bkash: ^0.1.1
32
+
flutter_bkash: ^0.1.2
33
33
```
34
34
35
35
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
// status => 'paymentSuccess', 'paymentFailed', 'paymentError', 'paymentClose' // data => return value of response
64
-
paymentStatus: (status, data) {
55
+
// depend isSandbox (true/false)
56
+
isSandbox: true,
57
+
// amount of your bkash payment
58
+
amount: '20',
59
+
/// intent would be (sale / authorization)
60
+
intent: 'sale',
61
+
// accessToken: '', /// if the user have own access token for verify payment
62
+
// currency: 'BDT',
63
+
/// bkash url for create payment, when you implement on you project then it be change as your production create url, [when you send it on sandbox mode, send it as empty string '' or anything]
/// bkash url for execute payment, , when you implement on you project then it be change as your production create url, [when you send it on sandbox mode, send it as empty string '' or anything]
/// for script url, when you implement on production the set it live script js (https://scripts.pay.bka.sh/versions/1.2.0-beta/checkout/bKash-checkout-pay.js)
- See the documents and demo checkout [bKash API Specifications](https://developer.bka.sh/v1.2.0-beta/reference), [bKash Payment Checkout Demo](https://merchantdemo.sandbox.bka.sh/frontend/checkout)
107
117
-**intent** - it would be 'sale' or 'authorization'
108
118
- Payment status return as 'paymentSuccess', 'paymentFailed', 'paymentError', 'paymentClose', find on this keyword of the payment status, then you get the data of response on specific status.
119
+
120
+
121
+
## Contributing
122
+
123
+
Contributions to the **flutter_bkash** package are welcome. Please note the following guidelines before submitting your pull request.
Copy file name to clipboardExpand all lines: pubspec.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
name: flutter_bkash
2
2
description: Flutter package for payment gateway service bKash (Bangladesh). bKash payment easy to implement through this package on your flutter project. # TODO: Description length is between 60 to 180 characters.
0 commit comments