Skip to content

Commit 591b7cd

Browse files
committed
Fixes #2
1 parent 9976058 commit 591b7cd

File tree

9 files changed

+9
-5
lines changed

9 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
## 0.9.1+2
2+
3+
* Fixed build failure because of difference in type of passed and expected value of encrypt function.
4+
15
## 0.9.1+1
26

3-
* Updated to the latest gradle and kotlin dependencies
7+
* Updated to the latest gradle and kotlin dependencies.
48

59
## 0.9.1
610

android/src/main/kotlin/co/paystack/flutterpaystack/FlutterPaystackPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class FlutterPaystackPlugin(val appContext: Context, val authDelegate: AuthDeleg
4141
authDelegate.handleAuthorization(result, call)
4242
}
4343
"getEncryptedData" -> {
44-
val encryptedData = Crypto.encrypt(call.argument<String>("stringData"))
44+
val encryptedData = Crypto.encrypt(call.argument<String>("stringData").toString())
4545
result.success(encryptedData)
4646
}
4747

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

lib/src/api/service/web_service.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class WebService extends BaseApiService {
4444
try {
4545
http.Response response = await http.get(url, headers: headers);
4646
return _getResponseFuture(response, completer);
47-
} catch (e, stacktrace) {
47+
} catch (e) {
4848
completer.completeError(e);
4949
}
5050

@@ -59,7 +59,7 @@ class WebService extends BaseApiService {
5959
http.Response response =
6060
await http.post(url, body: fields, headers: headers);
6161
return _getResponseFuture(response, completer, reference: reference);
62-
} catch (e, stacktrace) {
62+
} catch (e) {
6363
completer.completeError(e);
6464
}
6565

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.9.1+1
3+
version: 0.9.1+2
44
author: Wilberforce Uwadiegwu <faradaywilly@gmail.com>
55
homepage: https://github.com/wilburt/flutter_paystack
66

0 commit comments

Comments
 (0)