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.
This describes how to initiate a transfer
For more info about the payload parameteres definition, check here
Response flwResponse = new Transfer()
.runTransaction(new TransferRequest("https://www.flutterwave.com/ng/",
"akhlm-pstmnpyt-rfxx007_PMCKDU_1",
"NGN",
"044",
"0690000040",
"Akhlm Pstmn Trnsfr xx007",
new BigDecimal("10"),
"NGN"));
This describes how to retry a transfer
Response flwResponse = new Transfer().retry(id);
This describes how to create a bulk transfer
List<TransferRequest> transferRequestList = new ArrayList<>();
transferRequestList.add(transferRequest);
Response flwResponse = new Transfer()
.runBulkTransaction(transferRequestList);
This describes how to get a transfer fee
Response flwResponse = new Transfer()
.getFee(new BigDecimal("200"));
This describes how to get all transfers
Response flwResponse = new Transfer()
.getAllTransfers(Optional.page,
Optional.actions);
This describes how to get all transfers
Response flwResponse = new Transfer().getTransfer(id);
This describes how to get transfer rates
Response flwResponse = new Transfer()
.getTransferRate(new BigDecimal("200"),
"USD", "NGN");