Skip to content

Latest commit

 

History

History
90 lines (56 loc) · 1.71 KB

Transactions.md

File metadata and controls

90 lines (56 loc) · 1.71 KB

Transactions

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.

Verify a transaction

This describes how to verify a transaction

Response flwResponse = new Transactions()
        .runVerifyTransaction(id);

Create a Refund

This describes how to create a refund

Response flwResponse = new Transactions()
        .new Refunds().runRefund(id,
        Optional.amount);

Get multiple Transactions

This describes how to get multiple transactions

ListResponse flwResponse = new Transactions()
        .runGetTransactions();

Get multiple refund transactions

This describes how to get multiple refund transactions

ListResponse flwResponse = new Transactions()
        .new Refunds().runGet(id,
        Optional.amount);

Get refund details

This describes how to get refund details

Response flwResponse = new Transactions()
        .new Refunds().runGetDetails(id);

Get transactions fees (Collections)

This describes how to get transaction fee

Response flwResponse = new Transactions()
        .runGetTransactionsFees(new BigDecimal("10"),
        "NGN");

Resend failed Webhooks

This describes how to resend failed webhooks

Response flwResponse = new Transactions()
        .runResendWebhook(0,
        Optional.empty());

View transaction timeline

This describes how to view transaction timeline

Response flwResponse = new Transactions().runViewTimeline(id);