@@ -31,7 +31,9 @@ The library needs to be configured with a *merchant Id* & *API key*. You can get
3131
3232``` dart
3333
34- import 'package:webirr/webirr.dart';
34+ import 'package:webirr/webirr.dart';
35+
36+ void main() async {
3537
3638 const apikey = 'YOUR_API_KEY';
3739 const merchantId = 'YOUR_MERCHANT_ID';
@@ -85,13 +87,16 @@ The library needs to be configured with a *merchant Id* & *API key*. You can get
8587 'errorCode: ${res.errorCode}'); // can be used to handle specific busines error such as ERROR_INVLAID_INPUT
8688 }
8789
90+ }
8891```
8992
9093### Getting Payment status of an existing Bill from WeBirr Servers
9194
9295``` dart
9396
94- import 'package:webirr/webirr.dart';
97+ import 'package:webirr/webirr.dart';
98+
99+ void main() async {
95100
96101 const apikey = 'YOUR_API_KEY';
97102 const merchantId = 'YOUR_MERCHANT_ID';
@@ -120,13 +125,16 @@ The library needs to be configured with a *merchant Id* & *API key*. You can get
120125 'errorCode: ${r.errorCode}'); // can be used to handle specific busines error such as ERROR_INVLAID_INPUT
121126 }
122127
128+ }
123129```
124130
125131### Deleting an existing Bill from WeBirr Servers (if it is not paid)
126132
127133``` dart
128134
129- import 'package:webirr/webirr.dart';
135+ import 'package:webirr/webirr.dart';
136+
137+ void main() async {
130138
131139 const apikey = 'YOUR_API_KEY';
132140 const merchantId = 'YOUR_MERCHANT_ID';
@@ -148,5 +156,7 @@ The library needs to be configured with a *merchant Id* & *API key*. You can get
148156 print(
149157 'errorCode: ${res.errorCode}'); // can be used to handle specific bussines error such as ERROR_INVLAID_INPUT
150158 }
159+
160+ }
151161
152162```
0 commit comments