Skip to content

Commit cff63c6

Browse files
update virtual account call
1 parent f9b85a4 commit cff63c6

File tree

1,284 files changed

+383149
-272
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,284 files changed

+383149
-272
lines changed

Diff for: .DS_Store

0 Bytes
Binary file not shown.

Diff for: .github/ISSUE_TEMPLATE/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: SDK Integration Support
4-
url: https://developer.flutterwave.com/
4+
url: https://forum.flutterwave.com
55
about: If you're having general trouble with your integration, Kindly contact our support team.

Diff for: .github/workflows/change-review.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ jobs:
1414
OS: ubuntu-latest
1515
PYTHON: '3.7'
1616
steps:
17-
- uses: actions/checkout@v2
18-
- name: Set up Python
17+
- name: checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: setup python environment
1921
uses: actions/setup-python@v2
2022
with:
2123
python-version: '3.7'
2224

23-
- name: Install dependencies
25+
- name: install python dependencies
2426
run: |
2527
python -m pip install --upgrade pip
2628
pip install -r requirements.txt
@@ -36,7 +38,7 @@ jobs:
3638
- name: upload coverage report to codecov
3739
uses: codecov/codecov-action@v2
3840

39-
- name: push build status to Slack
41+
- name: push build status to slack
4042
uses: 8398a7/action-slack@v3
4143
with:
4244
status: ${{ job.status }}

Diff for: .github/workflows/python-publish.yml

+22-27
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,27 @@
1-
name: Publish to PyPi
1+
name: Publish changes to Python library
22

33
on:
44
release:
55
types: [created]
66

77
jobs:
8-
check-docs-update:
8+
check-readme-and-changelog:
99
runs-on: ubuntu-latest
1010
env:
1111
OS: ubuntu-latest
1212
PYTHON: '3.7'
1313
steps:
14-
- uses: actions/checkout@v2
15-
- uses: technote-space/get-diff-action@v6
16-
with:
17-
PATTERNS: |
18-
+(documentation)/*.md
19-
*.md
20-
CHANGE*.md
21-
FILES: |
22-
CHANGELOG.md
23-
24-
- name: log git diff
25-
run: |
26-
echo ${{ env.GIT_DIFF }}
27-
echo ${{ env.MATCHED_FILES }}
28-
echo ${{ env.GIT_DIFF_FILTERED }}
29-
30-
- name: Check if README.md or Doc/** is updated else exit
31-
if: (env.GIT_DIFF == '')
14+
- name: checkout code
15+
uses: actions/checkout@v2
16+
17+
- name: check for changes in readme and changelog files
3218
run: |
33-
echo Update documentation files and README.md before push
34-
exit 1
19+
if ! git diff --quiet HEAD~ HEAD -- README.md CHANGELOG.md; then
20+
echo "README and/or CHANGELOG have been modified. Proceeding with deployment."
21+
else
22+
echo "README and/or CHANGELOG have not been modified. Terminating deployment."
23+
exit 1
24+
fi
3525
3626
- name: push build status to Slack
3727
uses: 8398a7/action-slack@v3
@@ -40,27 +30,31 @@ jobs:
4030
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
4131
env:
4232
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
33+
MATRIX_CONTEXT: ${{ toJson(matrix) }}
4334
if: always()
4435

4536

46-
distribute:
37+
publish:
38+
needs: check-readme-and-changelog
4739
runs-on: ubuntu-latest
4840
env:
4941
OS: ubuntu-latest
5042
PYTHON: '3.7'
5143
steps:
52-
- uses: actions/checkout@v2
53-
- name: Set up Python
44+
- name: checkout code
45+
uses: actions/checkout@v2
46+
47+
- name: Setup python environment
5448
uses: actions/setup-python@v2
5549
with:
5650
python-version: '3.7'
5751

58-
- name: Install dependencies
52+
- name: install python dependencies
5953
run: |
6054
python -m pip install --upgrade pip
6155
pip install setuptools wheel twine
6256
63-
- name: Build and publish
57+
- name: build and publish package
6458
env:
6559
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
6660
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
@@ -75,4 +69,5 @@ jobs:
7569
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
7670
env:
7771
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
72+
MATRIX_CONTEXT: ${{ toJson(matrix) }}
7873
if: always()

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ staging
2525
zero
2626
.coverage
2727
example.py
28+
randomTester.py

Diff for: CHANGELOG.MD

+10-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
# Title
1+
# Changelog
2+
3+
## 1.4.0 | 2023-07-21
4+
Updated payment methods.
5+
### Version changes.
6+
- [FIXED] Update "Pay with Bank (NG)" endpoint.
7+
- [ADDED] eNaira payment method.
8+
- [ADDED] Pay with Bank Transfer payment method.
9+
- [ADDED] Tanzania mobile money payment method.
10+
- [ADDED] Support for EUR and GBP on pay with Bank method.

Diff for: README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ This is used to facilitate account transactions. Transactions initiated via this
416416
### ```.charge(payload)```
417417
This is called to start an account transaction. The payload should be a dictionary containing payment information. It should have the parameters:
418418

419-
* ```amount``` (The min amount for NGN account payments is N200),
419+
* ```amount``` (The min amount for NGN account payments is N200. For GBP and EUR payments, the min amount is 1),
420420
* ```currency``` (This payment option supports NGN, GBP and EUR),
421421
* ```email```,
422422
* ```firstname```,
@@ -2693,15 +2693,16 @@ This is used to create virtual account for transfers.
26932693

26942694
### ```.create(accountDetails)```
26952695

2696-
This allows a customer to create a virtual card. It requires a dict ```vcardDetails``` containing ```email```, ```seckey```, ```is_permanant```, ```frequency```, ```duration``` and ```narration```.
2696+
This allows a customer to create a virtual account. It requires a dict ```vaccountDetails``` containing ```email```, ```seckey```, ```is_permanant```, ```frequency```, ```bvn```, ```duration``` and ```narration```.
26972697

26982698
A sample Create call is:
26992699

27002700
```py
27012701
res = rave.VirtualAccount.create({
27022702
"email": "user@example.com",
2703-
"seckey": "FLWSECK-****************************-X",
2704-
"is_permanent": true
2703+
"bvn": "12345678901",
2704+
"is_permanent": true,
2705+
"narration": "Cornelius A-O"
27052706
})
27062707
print(res)
27072708
```
@@ -3175,4 +3176,4 @@ Copyright (c) Flutterwave Inc.
31753176
## Test section
31763177
Sample Description for teset file.
31773178

3178-
Final test 3 out of 10. Fingers crossed
3179+
Final test 3 out of 10. Fingers crossed

Diff for: example.py

-204
This file was deleted.

0 commit comments

Comments
 (0)