Skip to content

Commit 95f61a9

Browse files
committed
Updated the package used for handling HTTP API calls from Request to Fetch. Added to the chargeSchema for ACH charge in for specific OZOW banks
1 parent bdee473 commit 95f61a9

File tree

8 files changed

+894
-5038
lines changed

8 files changed

+894
-5038
lines changed

CHANGELOG.md

+52-7
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,90 @@
11
# Changelog
2+
3+
## 1.1.16 | 2025-03-27
4+
5+
Updated the package used for handling HTTP API calls from Request to Fetch. Added `sa_bank_code` to the chargeSchema for ACH charge in `zar` for specific OZOW banks.
6+
7+
### Version Changes
8+
9+
- [ADDED] `sa_bank_code` in the chargeSchema.
10+
- [ADDED] Fetch API to handle HTTP calls in the SDK.
11+
- [REMOVED] The deprecated request package as a dependency.
12+
213
## 1.1.15 | 2025-02-28
3-
Added transaction verification by reference and updated the settlement imports for the `fetch_all()` and `fetch()` settlement methods.
14+
15+
Added transaction verification by reference and updated the settlement imports for the `fetch_all()` and `fetch()` settlement methods.
416

517
### Version Changes
18+
619
- [ADDED] Transaction verification by reference(`tx_ref`).
720
- [FIXED] Update the `fetch_all()` and `fetch()` settlement methods to use the correct settlement imports, ensuring they send the correct requests to the Flutterwave API.
821

922
## 1.1.14 | 2024-12-13
23+
1024
Updated the `voucher` parameter in the momo schema.
1125

1226
### Version Changes
27+
1328
- [FIXED] Update the `voucher` parameter in the momo schema to be an optional parameter.
1429

1530
## 1.1.13 | 2024-11-19
31+
1632
Updated the `getBalanceByCurrency` method to parse path parameters.
1733

1834
### Version Changes
35+
1936
- [FIXED] Update the `balance_currency` function in the Misc object to exclude queries when parsing a path parameter.
2037

2138
## 1.1.12 | 2024-09-27
39+
2240
Updated the `account_bank` field in the list schema.
2341

2442
### Version Changes
43+
2544
- [FIXED] Update validation from required to optional for 'account_bank" parameter in the list schema.
2645

2746
## 1.1.11 | 2024-09-10
47+
2848
Updated the `account_bank` field in all schema's.
2949

3050
### Version Changes
51+
3152
- [FIXED] Update validation (minLength & maxLength) for 'account_bank" parameter in the schema's.
3253

3354
## 1.1.10 | 2024-04-04
55+
3456
Updated the variable name "package" which happens to be a reserved word in JavaScript, and it is causing compatibility issues with certain bundlers.
3557

3658
### Version Changes
59+
3760
- [FIXED] changed the variable name 'package' to 'packageJson' in the logger.js file.
3861

3962
## 1.1.9 | 2024-03-18
63+
4064
Validation hotfix on subaccounts
4165

4266
### Version Changes.
67+
4368
- [FIXED] Update validation (minLength & maxLength) for 'account_bank" parameter in the subaccountSchema.
4469

4570
## 1.1.8 | 2024-02-19
71+
4672
Updated BVN verification flow and hotfixes on subaccount, bills and transaction fees:
4773

4874
### Version Changes.
75+
4976
- [ADDED] New BVN verification flow (via NIBBS).
5077
- [ADDED] Unit tests for more coverage on the BVN verification, fees, and split payments.
5178
- [ADDED] Subaccounts parameter (optional) to card charge and PWBT requests.
5279
- [FIXED] Resolved "URL Not Found" Error returned from Validate Bill Service method.
5380
- [FIXED] Resolved "Invalid currency provided" Error returned from the Transaction fees method.
5481

5582
## 1.1.7 | 2024-01-25
83+
5684
Scheduled updates and bugfixes:
5785

5886
### Version Changes.
87+
5988
- [ADDED] Tanzania mobile money payment method.
6089
- [ADDED] Fawry Pay payment method.
6190
- [ADDED] Supplementary parameters in the createBulkTransferSchema.
@@ -75,25 +104,36 @@ Scheduled updates and bugfixes:
75104
- [REMOVED] Eliminated the "amount" parameter in the updatePlanSchema.
76105

77106
## 1.1.6 | 2023-06-21
107+
78108
Hotfix on Transfer fees and Bank lists.
109+
79110
### Version changes.
111+
80112
- [FIXED] Transfer fees returning 0 for all amounts.
81113
- [FIXED] Null data response for Bank lists.
82114

83115
## 1.1.5 | 2023-04-13
116+
84117
Hotfix to hide header information in the library response.
118+
85119
### Version changes.
120+
86121
- [FIXED] Removed headers in the response.
87122

88123
## 1.1.4 | 2023-04-13
124+
89125
This release fixes the empty subscription fetch query with user email.
126+
90127
### Version changes.
91-
- [FIXED] Empty data in response object for subscription fetch with email query parameter
92128

129+
- [FIXED] Empty data in response object for subscription fetch with email query parameter
93130

94131
## 1.1.3 | 2023-03-29
132+
95133
Scheduled updates and bug fixes. This release fixes all the bugs in the new SDK (v1.1.0)
134+
96135
### Version changes.
136+
97137
- [FIXED] Updated validation for empty meta objects in charge and transfer methods.
98138
- [FIXED] Added conditional validation for `Country`, `Network`and `Voucher` parameters in Mobile Money schema.
99139
- [FIXED] [#111](https://github.com/Flutterwave/Node/issues/111) Verify transaction error.
@@ -103,16 +143,21 @@ Scheduled updates and bug fixes. This release fixes all the bugs in the new SDK
103143
- [REMOVED] Replaced `first_name` and `last_name` in the Card tokenization schema with a single `full_name`field.
104144

105145
## 1.1.1 | 2023-03-17
146+
106147
This release fixes all morx errors thrown in custom request class.
148+
107149
### Version changes.
150+
108151
- [FIXED] Morx error returned in custom service class in v1.1.0
109152

110153
## 1.1.0 | 2023-03-14
154+
111155
This release fixes all npm warnings and dependabot error messages.
156+
112157
### Version changes.
113-
- [FIXED] [#103](https://github.com/Flutterwave/Node/issues/103) Multiple Vulnerabilities Introduced by dependencies
114-
- [FIXED] [#87](https://github.com/Flutterwave/Node/issues/87) Amount is required for payment plan creation
115-
- [FIXED] [#84](https://github.com/Flutterwave/Node/issues/84) Cannot filter bills by category
116-
- [FIXED] [#79](https://github.com/Flutterwave/Node/issues/79) Urgent: Transactions GET endpoint or any endpoints with qs doesn't work
117-
- [ADDED] Support for ApplePay, GooglePay and eNaira payments.
118158

159+
- [FIXED] [#103](https://github.com/Flutterwave/Node/issues/103) Multiple Vulnerabilities Introduced by dependencies
160+
- [FIXED] [#87](https://github.com/Flutterwave/Node/issues/87) Amount is required for payment plan creation
161+
- [FIXED] [#84](https://github.com/Flutterwave/Node/issues/84) Cannot filter bills by category
162+
- [FIXED] [#79](https://github.com/Flutterwave/Node/issues/79) Urgent: Transactions GET endpoint or any endpoints with qs doesn't work
163+
- [ADDED] Support for ApplePay, GooglePay and eNaira payments.

README.md

+13-11
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Available features include:
2424
- Bill payments: Airtime, Data bundle, Cable, Power, Toll, E-bills, and Remitta.
2525
- Identity verification: Resolve bank account, resolve BVN information and generate OTP.
2626

27-
2827
## Table of Content
28+
2929
1. [Requirements](#requirements)
3030
2. [Installation](#installation)
3131
3. [Initialization](#initialization)
@@ -40,8 +40,7 @@ Available features include:
4040
## Requirements
4141

4242
1. Flutterwave for business (F4B) [API Keys](https://developer.flutterwave.com/docs/integration-guides/authentication)
43-
2. Node 12 or higher.
44-
43+
2. Node 18 or higher.
4544

4645
## Installation
4746

@@ -51,27 +50,29 @@ To install the package, run the following command in your Node terminal:
5150
npm install flutterwave-node-v3
5251
```
5352

54-
5553
## Initialization
5654

5755
```javascript
5856
const Flutterwave = require('flutterwave-node-v3');
59-
const flw = new Flutterwave(process.env.FLW_PUBLIC_KEY, process.env.FLW_SECRET_KEY);
57+
const flw = new Flutterwave(
58+
process.env.FLW_PUBLIC_KEY,
59+
process.env.FLW_SECRET_KEY,
60+
);
6061
```
6162

6263
For staging (Test environment), use the TEST API Keys and for production (Live environment), use LIVE API KEYS.
6364
You can get your process.env.FLW_PUBLIC_KEY and process.env.FLW_SECRET_KEY from the Flutterwave dashboard. Read the [requirement section](#requirements) for more information on how to get your API keys.
6465

65-
6666
## Usage
67+
6768
1. [Collections](documentation/collections.md)
6869
2. [Tokenization](documentation/tokenization.md)
6970
3. [Subscriptions](documentation/subscription.md)
7071
4. [Transfers](documentation/transfers.md)
7172
5. [Virtual Account](documentation/virtualAccount.md)
7273
6. [Bill payments](documentation/billPayments.md)
7374
7. [Transactions and reporting](documentation/transactions.md)
74-
8. [Beneficiaries](documentation/beneficiary.md)
75+
8. [Beneficiaries](documentation/beneficiary.md)
7576
9. [Banks](documentation/banks.md)
7677
10. [Settlements](documentation/settlements.md)
7778
11. [OTP](documentation/otp.md)
@@ -81,28 +82,29 @@ You can get your process.env.FLW_PUBLIC_KEY and process.env.FLW_SECRET_KEY from
8182
15. [Collection Subaccounts](documentation/subaccount.md)
8283
16. [Payment-plan](documentation/payment-plan.md)
8384

84-
8585
## Testing
86+
8687
All of the libraries tests are run on Mocha. Available tests include `rave.bank.test`, `rave.beneficiaries.test`, `rave.bills.test`, `rave.charge.test`, `rave.ebills.test`, `rave.settlements.test`, `rave.subscriptions.test`. They can be run by running the test command in your terminal.
8788

8889
```sh
8990
npm run test or npm test
9091
```
9192

9293
## Debugging Errors
94+
9395
We understand that you may run into some errors while integrating our library. You can read more about our error messages [here](https://developer.flutterwave.com/docs/integration-guides/errors).
9496
For `authorization` and `validation` error responses, double-check your API keys and request. If you get a `server` error, kindly engage the team for support.
9597

96-
9798
## Support
99+
98100
For additional assistance using this library, contact the developer experience (DX) team via [email](mailto:[email protected]) or on [slack](https://bit.ly/34Vkzcg).
99101
You can also follow us [@FlutterwaveEng](https://twitter.com/FlutterwaveEng) and let us know what you think 😊.
100102

101-
102103
## Contribution guidelines
103-
Read more about our community contribution guidelines [here](/CONTRIBUTING.md)
104104

105+
Read more about our community contribution guidelines [here](/CONTRIBUTING.md)
105106

106107
## License
108+
107109
By contributing to this library, you agree that your contributions will be licensed under its [MIT license](/LICENSE).
108110
Copyright (c) Flutterwave Inc.

0 commit comments

Comments
 (0)