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 create a tokenized charge
Response flwResponse = new TokenizedCharge()
.runTransaction(new TokenizedChargeRequest("flw-t1nf-f9b3bf384cd30d6fca42b6df9d27bd2f-m03k",
"NGN",
"NG",
new BigDecimal("2000"),
"[email protected]",
"Flutterwave",
"Developers",
"123.876.0997.9",
"Sample tokenized charge",
"tokenized-c-001"));
This describes how to create a bulk tokenized charge
List<TokenizedChargeRequest> tokenizedChargeRequestList= new ArrayList<>();
tokenizedChargeRequestList.add(tokenizedChargeRequest);
Response flwResponse = new TokenizedCharge()
.runBulkTransaction(tokenizedChargeRequestList);
This describes how to get bulk tokenized charge
ListResponse flwResponse = new TokenizedCharge()
.runGetBulkTransaction(id);
This describes how to get bulk tokenized charge
Response flwResponse = new TokenizedCharge()
.runGetBulkTransactionStatus(id);
This describes how to update card token
Response flwResponse = new TokenizedCharge()
.runUpdateToken(token,
new UpdateTokenRequest("[email protected]",
"Kendrick Graham",
"0813XXXXXXX"));