Skip to content

Commit efdd28f

Browse files
committed
Support for Flutter v0.5.1
1 parent c8fe8f0 commit efdd28f

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.5.2
2+
3+
* Support for Flutter v0.5.1.
4+
15
## 0.5.1
26

37
* Exposed Paystack Exception

lib/src/api/service/api_service.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ApiService {
2727

2828
var statusCode = response.statusCode;
2929

30-
if (statusCode == HttpStatus.ok) {
30+
if (statusCode == HttpStatus.OK) {
3131
Map<String, dynamic> responseBody = json.decode(body);
3232
completer.complete(TransactionApiResponse.fromMap(responseBody));
3333
} else {
@@ -52,7 +52,7 @@ class ApiService {
5252
var body = response.body;
5353

5454
var statusCode = response.statusCode;
55-
if (statusCode == HttpStatus.ok) {
55+
if (statusCode == HttpStatus.OK) {
5656
Map<String, dynamic> responseBody = json.decode(body);
5757
completer.complete(TransactionApiResponse.fromMap(responseBody));
5858
} else {
@@ -73,7 +73,7 @@ class ApiService {
7373
http.Response response = await http.get(url, headers: headers);
7474
var body = response.body;
7575
var statusCode = response.statusCode;
76-
if (statusCode == HttpStatus.ok) {
76+
if (statusCode == HttpStatus.OK) {
7777
Map<String, dynamic> responseBody = json.decode(body);
7878
completer.complete(TransactionApiResponse.fromMap(responseBody));
7979
} else {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_paystack
22
description: A Flutter plugin for making payments via Paystack Payment Gateway. Completely supports Android and iOS.
3-
version: 0.5.1
3+
version: 0.5.2
44
author: Wilberforce Uwadiegwu <faradaywilly@gmail.com>
55
homepage: https://github.com/wilburt/flutter_paystack
66

0 commit comments

Comments
 (0)