From fed40bd07dc96c736246162e531c1b6320b2ebfc Mon Sep 17 00:00:00 2001 From: dekunledev Date: Thu, 10 Apr 2025 13:07:09 +0100 Subject: [PATCH 1/3] update workflows to latest flutter version --- .github/workflows/change-review.yml | 8 +++----- .github/workflows/package-publish.yml | 4 ++-- CHANGELOG.md | 2 +- README.md | 2 +- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/change-review.yml b/.github/workflows/change-review.yml index 016b3b1..ce2046e 100644 --- a/.github/workflows/change-review.yml +++ b/.github/workflows/change-review.yml @@ -1,9 +1,8 @@ - name: Review changes on Dev (Commits/PRs) on: push: - branches: ['dev'] + branches: ["dev"] pull_request: types: - opened @@ -15,11 +14,11 @@ jobs: steps: - name: checkout code uses: actions/checkout@v2 - + - name: setup flutter environment uses: subosito/flutter-action@v2 with: - flutter-version: '3.0.0' + flutter-version: "3.29.2" - name: install flutter dependencies run: flutter pub get @@ -48,4 +47,3 @@ jobs: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} MATRIX_CONTEXT: ${{ toJson(matrix) }} if: always() - diff --git a/.github/workflows/package-publish.yml b/.github/workflows/package-publish.yml index 7992fb2..f550647 100644 --- a/.github/workflows/package-publish.yml +++ b/.github/workflows/package-publish.yml @@ -29,7 +29,7 @@ jobs: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} MATRIX_CONTEXT: ${{ toJson(matrix) }} if: always() - + publish: needs: check-readme-and-changelog runs-on: ubuntu-latest @@ -40,7 +40,7 @@ jobs: - name: setup flutter environment uses: subosito/flutter-action@v2 with: - flutter-version: '3.0.0' + flutter-version: "3.29.2" - name: install flutter dependencies run: flutter pub get diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e68f3c..f944c7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ - Improved error handling and state management. - Removed deprecated components: `flutterwave_style.dart` and `standard_webview.dart`. - Updated SDK requirements to `>=2.17.0`. -- Upgraded dependencies to latest versions. +- Upgraded dependencies to the latest versions. - Removed unused dependencies: webview_flutter, modal_bottom_sheet and uuid. ## [1.0.7] - February, 2023 diff --git a/README.md b/README.md index 510e5ad..dd64be3 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Available features include: - Collections: Card, Account, Mobile money, Bank Transfers, USSD. - Recurring payments: Tokenization and Subscriptions. -- Split payments +- Split payments. ## Table of Contents From 0f85d242fc2763043eba96bb200854cfa394aff2 Mon Sep 17 00:00:00 2001 From: dekunledev Date: Thu, 10 Apr 2025 13:11:20 +0100 Subject: [PATCH 2/3] updates to the example app --- CHANGELOG.md | 2 +- README.md | 2 +- example/lib/main.dart | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f944c7b..27164a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ - Enhanced success status check logic to handle different status values ("success" and "completed"). - Improved error handling and state management. - Removed deprecated components: `flutterwave_style.dart` and `standard_webview.dart`. -- Updated SDK requirements to `>=2.17.0`. +- Updated the SDK requirements to `>=2.17.0`. - Upgraded dependencies to the latest versions. - Removed unused dependencies: webview_flutter, modal_bottom_sheet and uuid. diff --git a/README.md b/README.md index dd64be3..47c6334 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Available features include: 1. Flutterwave for business [API Keys](https://developer.flutterwave.com/docs/integration-guides/authentication) 2. Supported Flutter version >= 1.17.0 3. Dart SDK >= 2.17.0 -4. For Android: Ensure NDK version >= 27.0.12077973 on your project's android/app/build.gradle.kts file with android { ndkVersion = "27.0.12077973" } +4. For Android: Ensure the NDK version >= 27.0.12077973 on your project's android/app/build.gradle.kts file with android { ndkVersion = "27.0.12077973" } ## Installation diff --git a/example/lib/main.dart b/example/lib/main.dart index e3be1c9..5c115ba 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -162,7 +162,7 @@ class _MyHomePageState extends State { ); final Flutterwave flutterwave = Flutterwave( - publicKey: "YOUR_SECRET_KEY", // Input your public key + publicKey: "YOUR_PUBLIC_KEY", // Input your public key currency: selectedCurrency, amount: amountController.text.toString().trim(), customer: customer, From efe7fc96f9b17d0180020b50c4efd28ae984c990 Mon Sep 17 00:00:00 2001 From: dekunledev Date: Thu, 10 Apr 2025 13:22:13 +0100 Subject: [PATCH 3/3] removed flutterwave style test --- CHANGELOG.md | 1 + README.md | 2 +- test/flutterwave_style_test.dart | 60 -------------------------------- 3 files changed, 2 insertions(+), 61 deletions(-) delete mode 100644 test/flutterwave_style_test.dart diff --git a/CHANGELOG.md b/CHANGELOG.md index 27164a0..e6adeec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Enhanced success status check logic to handle different status values ("success" and "completed"). - Improved error handling and state management. - Removed deprecated components: `flutterwave_style.dart` and `standard_webview.dart`. +- Removed `flutterwave_style_test.dart`. - Updated the SDK requirements to `>=2.17.0`. - Upgraded dependencies to the latest versions. - Removed unused dependencies: webview_flutter, modal_bottom_sheet and uuid. diff --git a/README.md b/README.md index 47c6334..8e73a45 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ Call the verify transaction [endpoint](https://developer.flutterwave.com/docs/tr #### Note - `ChargeResponse` can be null, depending on if the user cancels the transaction by pressing back. -- You need to confirm the transaction is successful. Ensure that the txRef, amount, and status are correct and successful. Be sure to [verify the transaction details](https://developer.flutterwave.com/docs/transaction-verification) before providing value. +- You need to confirm the transaction status is successful. Ensure that the txRef, amount, and status are correct and successful. Be sure to [verify the transaction details](https://developer.flutterwave.com/docs/transaction-verification) before providing value. - Some payment methods are not instant, such a `Pay with Bank Transfers, Pay with Bank`, and so you would need to rely on [webhooks](https://developer.flutterwave.com/docs/webhooks) or call the transaction verification service using the [`transactionId`](https://developer.flutterwave.com/reference/verify-transaction), or transaction reference you created(`txRef`) - For such long payments like the above, closing the payment page returns a `cancelled` status, so your final source of truth has to be calling the transaction verification service. diff --git a/test/flutterwave_style_test.dart b/test/flutterwave_style_test.dart deleted file mode 100644 index 5906019..0000000 --- a/test/flutterwave_style_test.dart +++ /dev/null @@ -1,60 +0,0 @@ -// import 'package:flutter/material.dart'; -// import 'package:flutter_test/flutter_test.dart'; -// import 'package:flutterwave_standard/flutterwave.dart'; - -// main() { -// group("Flutterwave Style should", () { - -// final buttonTextStyle = TextStyle( -// color: Colors.deepOrangeAccent, -// fontSize: 16, -// ); - -// var style = FlutterwaveStyle( -// appBarText: "My Standard Blue", -// buttonColor: Color(0xffd0ebff), -// buttonTextStyle: buttonTextStyle, -// appBarColor: Color(0xff8fa33b), -// dialogCancelTextStyle: TextStyle( -// color: Colors.brown, -// fontSize: 18, -// ), -// dialogContinueTextStyle: TextStyle( -// color: Colors.purpleAccent, -// fontSize: 18, -// ), -// mainBackgroundColor: Colors.indigo, -// mainTextStyle: TextStyle( -// color: Colors.indigo, -// fontSize: 19, -// letterSpacing: 2 -// ), -// dialogBackgroundColor: Colors.greenAccent, -// appBarIcon: Icon(Icons.message, color: Colors.purple), -// buttonText: "Pay", -// appBarTitleTextStyle: TextStyle( -// color: Colors.purpleAccent, -// fontSize: 18, -// ), -// ); - -// test("return correct style properties", () { -// expect(Colors.greenAccent, style.getDialogBackgroundColor()); -// expect("My Standard Blue", style.getAppBarText()); -// expect(Colors.indigo, style.getMainBackgroundColor()); -// expect("Pay", style.getButtonText()); -// expect(buttonTextStyle, style.getButtonTextStyle()); -// }); - -// test("return default style properties if style properties are not set", () { -// style = FlutterwaveStyle(); -// expect(Colors.white, style.getDialogBackgroundColor()); -// expect("Flutterwave", style.getAppBarText()); -// expect(Colors.white, style.getMainBackgroundColor()); -// expect("Make Payment", style.getButtonText()); -// expect(Color(0xFFfff1d0), style.getAppBarColor()); -// }); - -// }); - -// }