Skip to content

Commit 785b4a6

Browse files
Merge pull request #74 from Dekunledev/master
Added checkmarx security scan to the package build pipeline
2 parents 630372e + b137261 commit 785b4a6

File tree

7 files changed

+63
-15
lines changed

7 files changed

+63
-15
lines changed

.github/workflows/package-publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
release:
55
types: [created]
66

7+
permissions:
8+
id-token: write
9+
contents: read
10+
711
jobs:
812
check-readme-and-changelog:
913
runs-on: ubuntu-latest
@@ -46,7 +50,7 @@ jobs:
4650
run: flutter pub get
4751

4852
- name: Publish to Pub.dev
49-
run: pub publish --dry-run
53+
run: flutter pub publish --dry-run
5054

5155
- name: push build status to Slack
5256
uses: 8398a7/action-slack@v3

.github/workflows/security-scan.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Security scan on all changes (Commits/PRs)
2+
on:
3+
push:
4+
branches: ["main", "master", "pilot", "dev"]
5+
pull_request:
6+
types:
7+
- opened
8+
jobs:
9+
code-check:
10+
runs-on: ubuntu-latest
11+
env:
12+
OS: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
17+
- name: Checkmarx One CLI Action
18+
uses: checkmarx/ast-github-action@main
19+
with:
20+
project_name: Flutter-v3
21+
cx_tenant: Flutterwave
22+
base_uri: https://eu.ast.checkmarx.net/
23+
cx_client_id: ${{ secrets.CX_CLIENT_ID }}
24+
cx_client_secret: ${{ secrets.CX_CLIENT_SECRET }}
25+
additional_params: --scan-types sast,iac-security,api-security,sca,container-security

CHANGELOG.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
## [1.1.0] | 2025-04-10
1+
## [1.1.1] | April 24, 2025
22

3-
### Version Changes
3+
Changes include:
4+
5+
- Added checkmarx security scan to the package build pipeline.
6+
7+
## [1.1.0] | April 11, 2025
8+
9+
Changes include:
410

511
- Modified `Flutterwave.charge()` method to accept a BuildContext parameter.
612
- Added context.mounted checks to prevent setState calls after widget disposal.
@@ -11,19 +17,26 @@
1117
- Updated the SDK requirements to `>=2.17.0`.
1218
- Upgraded dependencies to the latest versions.
1319
- Removed unused dependencies: webview_flutter, modal_bottom_sheet and uuid.
20+
- Update deployment workflow.
1421

1522
## [1.0.7] - February, 2023
1623

24+
Changes include:
25+
1726
- Fixed iOS bug where webview couldn't close when close buttons are clicked
1827
- Removed required `name` and `phone number` fields in `Customer` object
1928

2029
## [1.0.6] - October, 2022
2130

31+
Changes include:
32+
2233
- Fixed bug where transaction gets stuck after redirecting on webview
2334
- Fixed iOS build bug by removing inAppBrowser library
2435

2536
## [1.0.5] - October, 2022
2637

38+
Changes include:
39+
2740
- Fixed null when transaction is cancelled.
2841
- Removed modal pop up before launching web view.
2942
- Removed intermediate make payment screen before webview.
@@ -32,22 +45,32 @@
3245

3346
## [1.0.4] - July 4, 2022
3447

48+
Changes include:
49+
3550
- Renamed property `isDebug` to `isTestMode`
3651
- Made property `redirectUrl` required
3752
- Updated README file
3853

3954
## [1.0.3] - October 4, 2021.
4055

56+
Changes include:
57+
4158
- Fixed issue with webview
4259

4360
## [1.0.2] - September 23, 2021.
4461

62+
Changes include:
63+
4564
- Fixed bug where cancel payment buttons are not clickable on iOS devices.
4665

4766
## [1.0.1] - September 14, 2021.
4867

68+
Changes include:
69+
4970
- Fixed bug where response is not returned to initiating screen when user cancels transaction.
5071

5172
## [1.0.0] - September 9, 2021.
5273

74+
Changes include:
75+
5376
- Initial release

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ Available features include:
2626
1. Flutterwave for business [API Keys](https://developer.flutterwave.com/docs/integration-guides/authentication)
2727
2. Supported Flutter version >= 1.17.0
2828
3. Dart SDK >= 2.17.0
29-
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" }
29+
4. For Android development, ensure the NDK version >= `27.0.12077973` on your project's `android/app/build.gradle.kts` file with android `{ ndkVersion = "27.0.12077973" }`.
3030

3131
## Installation
3232

3333
1. Add the dependency to your project. In your `pubspec.yaml` file add: `flutterwave_standard: 1.1.0`
34-
2. Run `flutter pub get`
34+
2. Run `flutter pub get`.
3535

3636
## Usage
3737

@@ -90,39 +90,36 @@ Calling the `.charge()` method returns a `Future` of `ChargeResponse` which we a
9090
Call the verify transaction [endpoint](https://developer.flutterwave.com/docs/transaction-verification) with the `transactionID` returned in `response.transactionId` or the `txRef` you provided to verify transaction before offering value to customer
9191

9292
#### Note
93-
9493
- `ChargeResponse` can be null, depending on if the user cancels the transaction by pressing back.
9594
- 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.
9695
- 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`)
9796
- 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.
9897

99-
## Support
10098

99+
## Support
101100
For additional assistance using this library, contact the developer experience (DX) team via [email](mailto:[email protected]) or on [slack](https://bit.ly/34Vkzcg).
102101

103102
You can also follow us [@FlutterwaveEng](https://twitter.com/FlutterwaveEng) and let us know what you think 😊.
104103

104+
105105
## Contribution guidelines
106+
Read more about our community contribution guidelines [here](CONTRIBUTING.md).
106107

107-
Read more about our community contribution guidelines [here](https://www.notion.so/flutterwavego/Community-contribution-guide-ca1d8a876ba04d45ab4b663c758ae42a).
108108

109109
## License
110-
111110
By contributing to the Flutter library, you agree that your contributions will be licensed under its [MIT license](/LICENSE).
112111

113112
Copyright (c) Flutterwave Inc.
114113

115114
## Built Using
116-
117115
- [flutter](https://flutter.dev/)
118116
- [http](https://pub.dev/packages/http)
119117
- [flutter_inappwebview](https://pub.dev/packages/flutter_inappwebview)
120118
- [fluttertoast](https://pub.dev/packages/fluttertoast)
121119

122120
<a id="references"></a>
123121

124-
## Flutterwave API References
125-
122+
## Other Resources
126123
- [Flutterwave API Doc](https://developer.flutterwave.com)
127124
- [Flutterwave Inline Payment Doc](https://developer.flutterwave.com/docs/inline)
128125
- [Flutterwave Dashboard](https://dashboard.flutterwave.com/login)

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ packages:
254254
path: ".."
255255
relative: true
256256
source: path
257-
version: "1.0.7"
257+
version: "1.1.1"
258258
glob:
259259
dependency: transitive
260260
description:

lib/view/flutterwave_in_app_browser.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ class FlutterwaveInAppBrowser extends InAppBrowser {
3333
_checkHasCompletedProcessing(final Uri uri) {
3434
final status = uri.queryParameters["status"];
3535
final txRef = uri.queryParameters["tx_ref"];
36-
final id = uri.queryParameters["transaction_id"];
3736
if (status != null && txRef != null) {
3837
_finish(uri);
3938
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutterwave_standard
22
description: Flutterwave's official library that wraps the standard implementation.
3-
version: 1.0.7
3+
version: 1.1.0
44
homepage: https://github.com/Flutterwave/flutter_standard
55
environment:
66
sdk: ">=2.17.0 <4.0.0"

0 commit comments

Comments
 (0)