Skip to content

Commit

Permalink
Support for Flutter v0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wilburx9 committed Aug 9, 2018
1 parent c8fe8f0 commit efdd28f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.5.2

* Support for Flutter v0.5.1.

## 0.5.1

* Exposed Paystack Exception
Expand Down
6 changes: 3 additions & 3 deletions lib/src/api/service/api_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ApiService {

var statusCode = response.statusCode;

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

var statusCode = response.statusCode;
if (statusCode == HttpStatus.ok) {
if (statusCode == HttpStatus.OK) {
Map<String, dynamic> responseBody = json.decode(body);
completer.complete(TransactionApiResponse.fromMap(responseBody));
} else {
Expand All @@ -73,7 +73,7 @@ class ApiService {
http.Response response = await http.get(url, headers: headers);
var body = response.body;
var statusCode = response.statusCode;
if (statusCode == HttpStatus.ok) {
if (statusCode == HttpStatus.OK) {
Map<String, dynamic> responseBody = json.decode(body);
completer.complete(TransactionApiResponse.fromMap(responseBody));
} else {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_paystack
description: A Flutter plugin for making payments via Paystack Payment Gateway. Completely supports Android and iOS.
version: 0.5.1
version: 0.5.2
author: Wilberforce Uwadiegwu <[email protected]>
homepage: https://github.com/wilburt/flutter_paystack

Expand Down

0 comments on commit efdd28f

Please sign in to comment.