Daily Transactions Summary

For getting daily transactions summary on the merchant application, the getTodayTransactionsSummary method of the library should be called. This function is used to get daily transactions through the library. The function takes DailySummaryListener interfaces as parameters.

PayContactlessEmbed.getInstance().getTodayTransactionsSummary(DailySummaryListener listener)

Daily Summary Listener

public interface DailySummaryListener {
    void onSuccess(Map<String, DailySummaryResult> dailySummaryResult);
    void onFailure(Error error);
}

Key of the map is currency value and the result object contains the details of the payments made in that currency.

A sample response in json format

{
    "₦": {
        "creditAmount": 300.00,
        "creditMerchantUserBreakdown": {
            "Embed Test": 300.00
        },
        "debitAmount": 0,
        "debitMerchantUserBreakdown": {}
    },
    "CFA": {
        "creditAmount": 100.00,
        "creditMerchantUserBreakdown": {
            "Embed Test": 100.00
        },
        "debitAmount": 0,
        "debitMerchantUserBreakdown": {}
    }
}

Daily Summary Result Data

data class DailySummaryResult (
    var creditAmount: Double? = null
    var creditMerchantUserBreakdown: Map<String, Double>? = null
    var debitAmount: Double? = null
    var debitMerchantUserBreakdown: Map<String, Double>? = null
)
Field Names
Descriptions
Sample Values

creditAmount

total amount of credit transaction today

13.00

creditMerchantUserBreakdown

detail of mercant user and credit amount of this user

"Fatih Shop" : 10.00 "Ergul Shop" : 3.00

debitAmount

total amount of debit transaction today

8.00

debitMerchantUserBreakdown

udetail of mercant user and debit amount of this user

"Fatih Shop" : 5.00 "Ergul Shop" : 3.00

Send Daily Summary Report

This function is used to send the daily transaction report to the merchant's defined mail address.

PayContactlessEmbed.getInstance().sendTodayTransactionsSummaryReport(SendMailListener listener)

Send Mail Listener

public interface SendMailListener {
    void onSuccess();
    void onFailure(Error error);
}

Last updated