-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -220,6 +220,55 @@ const product = await paystack.product.fetch(product_id) | |
const product = await paystack.product.update(product_id, { price: 69420 }) | ||
``` | ||
|
||
### Dedicated Virtual Accounts | ||
|
||
#### Create DVA | ||
```typescript | ||
const response = await paystack().dva.create({ customer: import.meta.env.CUSTOMER_CODE ?? '' }) | ||
``` | ||
#### Assign DVA | ||
```typescript | ||
const response = await paystack().dva.assign({ | ||
email: "[email protected]", | ||
first_name: "Jane", | ||
middle_name: "Karen", | ||
last_name: "Doe", | ||
phone: "+2348100000000", | ||
preferred_bank: "test-bank", | ||
country: "NG" | ||
|
||
}) | ||
``` | ||
#### List DVA | ||
```typescript | ||
const response = await paystack().dva.list({ active: true, currency: "NGN" }); | ||
``` | ||
#### Fetch DVA | ||
```typescript | ||
const response = await paystack().dva.fetch("foo") | ||
``` | ||
#### Requery DVA | ||
```typescript | ||
const response = await paystack().dva.requery({ account_number: "98897", provider_slug: "wema-bank" }); | ||
``` | ||
#### Deactivate DVA | ||
```typescript | ||
const response = await paystack().dva.deactivate("foo") | ||
``` | ||
#### Split DVA | ||
```typescript | ||
const response = await paystack().dva.split({ customer: "janey" }) | ||
``` | ||
|
||
#### Remove split DVA | ||
```typescript | ||
const response = await paystack().dva.remove_split("bar") | ||
``` | ||
#### Fetch bank providers | ||
```typescript | ||
const response = await paystack().dva.fetch_bank_providers(); | ||
``` | ||
|
||
## ROADMAP | ||
|
||
- [x] Requests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters