|
| 1 | +<p align="center"> |
| 2 | + <img title="Flutterwave" height="200" src="https://flutterwave.com/images/logo/full.svg" width="50%"/> |
| 3 | +</p> |
| 4 | + |
| 5 | +# Card Issuing |
| 6 | + |
| 7 | +We recommend reading the main readme first, to understand the requirements for using the library and how to initiate this in your apps. This guide assumes you've read that. |
| 8 | + |
| 9 | + |
| 10 | +## VIRTUAL CARDS |
| 11 | + |
| 12 | +## Create virtual card |
| 13 | + |
| 14 | +This describes how to create a new virtual card |
| 15 | + |
| 16 | +```java |
| 17 | +Response flwResponse = new VirtualCard() |
| 18 | + .runCreateVirtualCard(new VirtualCardRequest("USD", |
| 19 | + new BigDecimal("5"), |
| 20 | + "NGN", |
| 21 | + "Example User.", |
| 22 | + "333, Fremont Street", |
| 23 | + "San Francisco", |
| 24 | + "CA", |
| 25 | + "94105", |
| 26 | + "US", |
| 27 | + "Example", |
| 28 | + "User", |
| 29 | + "1996/12/30", |
| 30 | + "userg@example.com", |
| 31 | + "07030000000", |
| 32 | + "MR", |
| 33 | + "M", |
| 34 | + "https://webhook.site/b67965fa-e57c-4dda-84ce-0f8d6739b8a5")); |
| 35 | +``` |
| 36 | + |
| 37 | +## Get All Virtual Cards |
| 38 | + |
| 39 | +This describes how to get all virtual cards |
| 40 | + |
| 41 | +```java |
| 42 | +ListResponse flwResponse = new VirtualCard() |
| 43 | + .runGetAllVirtualCards(); |
| 44 | +``` |
| 45 | + |
| 46 | +## Get A Virtual Card |
| 47 | + |
| 48 | +This describes how to get a virtual cards |
| 49 | + |
| 50 | +```java |
| 51 | +Response flwResponse = new VirtualCard() |
| 52 | + .runGetVirtualCard(id); |
| 53 | +``` |
| 54 | + |
| 55 | +## Fund A Virtual Card |
| 56 | + |
| 57 | +This describes how to fund a virtual cards |
| 58 | + |
| 59 | +```java |
| 60 | +Response flwResponse = new VirtualCard() |
| 61 | + .runFundVirtualCard( |
| 62 | + id, |
| 63 | + new FundVirtualCardRequest( |
| 64 | + "USD", |
| 65 | + new BigDecimal("500")) |
| 66 | + ); |
| 67 | +``` |
| 68 | + |
| 69 | +## Withdraw From A Virtual Card |
| 70 | + |
| 71 | +This describes how to wihdraw from a virtual card |
| 72 | + |
| 73 | +```java |
| 74 | +ListResponse flwResponse = new VirtualCard() |
| 75 | + .runWithdrawVirtualCard("", new BigDecimal("200")); |
| 76 | +``` |
| 77 | + |
| 78 | +## Block/Unblock Virtual Card |
| 79 | + |
| 80 | +This describes how to block/unblock a virtual card |
| 81 | + |
| 82 | +```java |
| 83 | +Response flwResponse = new VirtualCard() |
| 84 | + .runStatusVirtualCard("", BLOCK); |
| 85 | +``` |
| 86 | + |
| 87 | +## Terminate A Virtual Card |
| 88 | + |
| 89 | +This describes how to terminate a virtual card |
| 90 | + |
| 91 | +```java |
| 92 | +Response flwResponse = new VirtualCard() |
| 93 | + .runTerminateVirtualCard(""); |
| 94 | +``` |
| 95 | + |
| 96 | +## Get A Virtual Card's Transactions |
| 97 | + |
| 98 | +This describes how to get a virtual cards' transaction |
| 99 | + |
| 100 | +```java |
| 101 | +ListResponse flwResponse = new VirtualCard() |
| 102 | + .runTerminateVirtualCard(""); |
| 103 | +``` |
0 commit comments