@@ -31,7 +31,9 @@ The library needs to be configured with a *merchant Id* & *API key*. You can get
31
31
32
32
``` dart
33
33
34
- import 'package:webirr/webirr.dart';
34
+ import 'package:webirr/webirr.dart';
35
+
36
+ void main() async {
35
37
36
38
const apikey = 'YOUR_API_KEY';
37
39
const merchantId = 'YOUR_MERCHANT_ID';
@@ -85,13 +87,16 @@ The library needs to be configured with a *merchant Id* & *API key*. You can get
85
87
'errorCode: ${res.errorCode}'); // can be used to handle specific busines error such as ERROR_INVLAID_INPUT
86
88
}
87
89
90
+ }
88
91
```
89
92
90
93
### Getting Payment status of an existing Bill from WeBirr Servers
91
94
92
95
``` dart
93
96
94
- import 'package:webirr/webirr.dart';
97
+ import 'package:webirr/webirr.dart';
98
+
99
+ void main() async {
95
100
96
101
const apikey = 'YOUR_API_KEY';
97
102
const merchantId = 'YOUR_MERCHANT_ID';
@@ -120,13 +125,16 @@ The library needs to be configured with a *merchant Id* & *API key*. You can get
120
125
'errorCode: ${r.errorCode}'); // can be used to handle specific busines error such as ERROR_INVLAID_INPUT
121
126
}
122
127
128
+ }
123
129
```
124
130
125
131
### Deleting an existing Bill from WeBirr Servers (if it is not paid)
126
132
127
133
``` dart
128
134
129
- import 'package:webirr/webirr.dart';
135
+ import 'package:webirr/webirr.dart';
136
+
137
+ void main() async {
130
138
131
139
const apikey = 'YOUR_API_KEY';
132
140
const merchantId = 'YOUR_MERCHANT_ID';
@@ -148,5 +156,7 @@ The library needs to be configured with a *merchant Id* & *API key*. You can get
148
156
print(
149
157
'errorCode: ${res.errorCode}'); // can be used to handle specific bussines error such as ERROR_INVLAID_INPUT
150
158
}
159
+
160
+ }
151
161
152
162
```
0 commit comments