Transactions History

For get transactions history list, the getTransactionList method of the library should be called. This function is used to get all transaction through the library.

This function supports pagenation. The page value must be 0 for the first request and it must be incremented for each page until reacing the total pages.

  • startDate and endDate must be in 'dd-MM-YYYY' format

  • direction can be "DESC" or "ASC". The default value is "DESC".

PayContactlessEmbed.getInstance().getTransactionList(int page, TransactionListListener listener)
PayContactlessEmbed.getInstance().getTransactionList(int page, int size, String direction, String transactionCode, String startDate, String endDate, Integer startAmount, Integer endAmount, TransactionListListener listener)

Transaction List Listener

public interface TransactionListListener {
    void onSuccess(TransactionList transactionList);
    void onFailure(Error error);
}

Transaction List Data

data class TransactionList (
    var transactions: List<TransactionInfo>? = null
    var empty: Boolean? = null
    var first: Boolean? = null
    var last: Boolean? = null
    var number: Integer? = null
    var numberOfElements: Integer? = null
    var size: Integer? = null
    var totalElements: Integer? = null
    var totalPages: Integer? = null
)

Transaction Info Data

data class TransactionList (
    var id: Long? = null
    var transactionCode: String? = null
    var cardNumber: String? = null
    var amount: Double? = null
    var currency: String? = null
    var dateTime: String? = null
    var status: String? = null
    var modeOfTransaction: String? = null
)

Last updated