LogoLogo
Developer Hub
Developer Hub
  • 📍Documentation
    • 🏂Onboarding
  • PayContactless
    • PayContactless Embed
  • 📱MERCHANT EMBED SDK
    • PayContactless Embed SDK
      • Getting Started
      • SDK API Reference
        • Initialize
        • Pay With Card
          • Sale
          • Refund
          • Pre&Post Auth
        • Pay With Link
        • Pay With Account
        • Transactions History
        • Transactions Detail
        • Send Receipt
        • Daily Transactions Summary
        • Error Handling
    • Security Mechanisms
    • Production Preparation
      • Play Integrity Configuration
      • Firebase Crashlytics Configuration
      • Firebase Push Notification Configuration
  • 📱CUSTOMER ACCOUNT BASE EMBED SDK
    • Account Base Embed SDK
      • Getting Started
      • SDK API Reference
  • 💻BACKEND INTEGRATION
    • API Specification
  • 🔐Security
Powered by GitBook
On this page
  • Daily Summary Listener
  • Daily Summary Result Data
  • Send Daily Summary Report
  • Send Mail Listener
  1. MERCHANT EMBED SDK
  2. PayContactless Embed SDK
  3. SDK API Reference

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);
}
PreviousSend ReceiptNextError Handling

Last updated 1 year ago

📱