Skip to content

Commit ba3373c

Browse files
Merge branch 'master' into dev
2 parents 4104df9 + eed7d87 commit ba3373c

File tree

4 files changed

+38
-8
lines changed

4 files changed

+38
-8
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: SDK Integration Support
4-
url: https://bit.ly/34Vkzcg
3+
- name: Developer Support Forum
4+
url: https://forum.flutterwave.com
55
about: If you're having general trouble with your integration, Kindly contact our support team.

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 1.1.5 | 2023-04-13
4+
Hotfix to hide header information in the library response.
5+
### Version changes.
6+
- [FIXED] Removed headers in the response.
7+
8+
## 1.1.4 | 2023-04-13
9+
This release fixes the empty subscription fetch query with user email.
10+
### Version changes.
11+
- [FIXED] Empty data in response object for subscription fetch with email query parameter
12+
13+
314
## 1.1.3 | 2023-03-29
415
Scheduled updates and bug fixes. This release fixes all the bugs in the new SDK (v1.1.0)
516
### Version changes.

README.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Available features include:
4545

4646
## Installation
4747

48-
To install the library, run this comman in your terminal:
48+
To install the library, run this comman in your Node terminal:
4949

5050
```sh
5151
npm install flutterwave-node-v3
@@ -81,8 +81,6 @@ You can get your process.env.FLW_PUBLIC_KEY and process.env.FLW_SECRET_KEY from
8181
14. [Misc](documentation/misc.md)
8282
15. Virtual Cards
8383

84-
### `Get bill payment agencies`
85-
8684

8785
## SUBSCRIPTIONS
8886
### ```Get all subscriptions```
@@ -91,9 +89,7 @@ This describes how to get all subscriptions
9189

9290
```javascript
9391
const Flutterwave = require('flutterwave-node-v3');
94-
9592
const flw = new Flutterwave(process.env.FLW_PUBLIC_KEY, process.env.FLW_SECRET_KEY );
96-
9793
const fetchSubscription = async () => {
9894

9995
try {
@@ -108,6 +104,29 @@ fetchSubscription();
108104

109105
```
110106
107+
### ```Fetch subscriptions with customer's email```
108+
109+
This describes how to fetch subscriptions made by a single user.
110+
111+
```javascript
112+
const Flutterwave = require('flutterwave-node-v3');
113+
const flw = new Flutterwave(process.env.FLW_PUBLIC_KEY, process.env.FLW_SECRET_KEY );
114+
const getSubscription = async () => {
115+
116+
try {
117+
const data = {
118+
"email": "user@example.com"
119+
}
120+
const response = await flw.Subscription.get(data)
121+
console.log(response);
122+
} catch (error) {
123+
console.log(error)
124+
}
125+
126+
getSubscription();
127+
128+
```
129+
111130
112131
### ```Cancel a subscription```
113132

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flutterwave-node-v3",
3-
"version": "1.1.4",
3+
"version": "1.1.5",
44
"description": "The official Node.JS library for Flutterwave v3 payment APIs",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)