Skip to content

Commit ec4f410

Browse files
v1.0.1 examples added
1 parent a017384 commit ec4f410

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

Diff for: CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44

55
## 1.0.0
66

7-
- Initial version
7+
- Initial version
8+
9+
## 1.0.1
10+
11+
- Examples added

Diff for: README.md

+13-3
Original file line numberDiff line numberDiff line change
@@ -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
```

Diff for: pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: webirr
2-
version: 1.0.0
2+
version: 1.0.1
33
description: >-
44
Official Dart Client Library for WeBirr APIs
55
homepage: https://github.com/webirr/webirr-api-dart-client

0 commit comments

Comments
 (0)