From 046c754e7c289a0a00b23bfbbe3060e837074f2b Mon Sep 17 00:00:00 2001 From: Anwar Nasir <92826091+AnexDev1@users.noreply.github.com> Date: Thu, 29 Aug 2024 23:56:10 +0300 Subject: [PATCH 1/3] Update chapa.dart made currency optional --- lib/src/chapa.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/chapa.dart b/lib/src/chapa.dart index e6df823..9a73bf3 100644 --- a/lib/src/chapa.dart +++ b/lib/src/chapa.dart @@ -97,7 +97,7 @@ class Chapa { String errorMsg, )? onInAppPaymentError, required String amount, - required String currency, + String currency, String? txRef, String? email, String? firstName, From d0ba8e3db5bb0ba964f9bec8d560688d1ebe3fa8 Mon Sep 17 00:00:00 2001 From: Anwar Nasir <92826091+AnexDev1@users.noreply.github.com> Date: Thu, 29 Aug 2024 23:56:43 +0300 Subject: [PATCH 2/3] Update chapa.dart made currency optional --- lib/src/chapa.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/chapa.dart b/lib/src/chapa.dart index e6df823..9a73bf3 100644 --- a/lib/src/chapa.dart +++ b/lib/src/chapa.dart @@ -97,7 +97,7 @@ class Chapa { String errorMsg, )? onInAppPaymentError, required String amount, - required String currency, + String currency, String? txRef, String? email, String? firstName, From d191e998908c79f19c3aeec03ec0e67cc048aa2e Mon Sep 17 00:00:00 2001 From: nexdev Date: Fri, 30 Aug 2024 00:14:15 +0300 Subject: [PATCH 3/3] set default value for currency --- .flutter-plugins | 2 +- .flutter-plugins-dependencies | 2 +- lib/src/chapa.dart | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.flutter-plugins b/.flutter-plugins index 2bf908b..8b48f64 100644 --- a/.flutter-plugins +++ b/.flutter-plugins @@ -1,2 +1,2 @@ # This is a generated file; do not edit or check into version control. -flutter_inappwebview=C:\\Users\\MRN\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\flutter_inappwebview-5.8.0\\ +flutter_inappwebview=/home/nexdev/.pub-cache/hosted/pub.dev/flutter_inappwebview-5.8.0/ diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies index 44c2be4..4934b0b 100644 --- a/.flutter-plugins-dependencies +++ b/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_inappwebview","path":"C:\\\\Users\\\\MRN\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_inappwebview-5.8.0\\\\","native_build":true,"dependencies":[]}],"android":[{"name":"flutter_inappwebview","path":"C:\\\\Users\\\\MRN\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\flutter_inappwebview-5.8.0\\\\","native_build":true,"dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"flutter_inappwebview","dependencies":[]}],"date_created":"2024-02-24 12:36:42.394349","version":"3.16.8"} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_inappwebview","path":"/home/nexdev/.pub-cache/hosted/pub.dev/flutter_inappwebview-5.8.0/","native_build":true,"dependencies":[]}],"android":[{"name":"flutter_inappwebview","path":"/home/nexdev/.pub-cache/hosted/pub.dev/flutter_inappwebview-5.8.0/","native_build":true,"dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"flutter_inappwebview","dependencies":[]}],"date_created":"2024-08-30 00:13:46.095605","version":"3.22.3"} \ No newline at end of file diff --git a/lib/src/chapa.dart b/lib/src/chapa.dart index 9a73bf3..f802fbf 100644 --- a/lib/src/chapa.dart +++ b/lib/src/chapa.dart @@ -6,11 +6,9 @@ import 'Core/http_config.dart'; import 'Core/type_definitions.dart'; import 'Data/DataSource/RemoteDataSource/chapa_remote_data_source.dart'; import 'Data/DataSource/RemoteDataSource/chapa_remote_data_source_impl.dart'; - import 'Data/Repository/chapa_repo_impl.dart'; import 'Domain/Entities/authorization_entity.dart'; import 'Domain/Entities/chapa_initializer_entity.dart'; - import 'Domain/Repository/chapa_repo.dart'; import 'Domain/Usecase/intialize_usecase.dart'; import 'Domain/Usecase/verify_usecase.dart'; @@ -97,7 +95,7 @@ class Chapa { String errorMsg, )? onInAppPaymentError, required String amount, - String currency, + String currency = 'ETB', String? txRef, String? email, String? firstName,