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
Copy file name to clipboardExpand all lines: README.md
+18-61Lines changed: 18 additions & 61 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -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.3
32
+
flutter_bkash: ^1.0.0
33
33
```
34
34
35
35
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
@@ -51,71 +51,28 @@ Examples for see the `/example` folder.
51
51
52
52
**Here is the example code**
53
53
```
54
-
BkashPayment(
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)
final bkashPaymentResponse = await flutterBkash.pay(
58
+
context: context,
59
+
amount: double.parse(amount),
60
+
marchentInvoiceNumber: "tranId",
61
+
);
62
+
63
+
print(bkashPaymentResponse);
64
+
} on BkashFailure catch (e, st) {
65
+
print(e.message, error: e, stackTrace: st);
66
+
} catch (e) {
67
+
print("Something went wrong");
68
+
}
112
69
```
113
70
114
71
### Importance Notes
115
72
- Read the comments in the example of code
116
73
- 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)
117
-
-**intent** - it would be 'sale' or 'authorization'
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.
74
+
<!-- - **intent** - it would be 'sale' or 'authorization'-->
75
+
<!-- - 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.-->
0 commit comments