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 verify a transaction
Response flwResponse = new Transactions()
.runVerifyTransaction(id);
This describes how to create a refund
Response flwResponse = new Transactions()
.new Refunds().runRefund(id,
Optional.amount);
This describes how to get multiple transactions
ListResponse flwResponse = new Transactions()
.runGetTransactions();
This describes how to get multiple refund transactions
ListResponse flwResponse = new Transactions()
.new Refunds().runGet(id,
Optional.amount);
This describes how to get refund details
Response flwResponse = new Transactions()
.new Refunds().runGetDetails(id);
This describes how to get transaction fee
Response flwResponse = new Transactions()
.runGetTransactionsFees(new BigDecimal("10"),
"NGN");
This describes how to resend failed webhooks
Response flwResponse = new Transactions()
.runResendWebhook(0,
Optional.empty());
This describes how to view transaction timeline
Response flwResponse = new Transactions().runViewTimeline(id);