Skip to main content
Version: 3.2.0

User Credit Info

Credit Info#

This is used in merchant check out screen (listing BharatX as an option) to display to the user how much credit they have obtained till now, and the total amount of credit they have access to:

Your Android App
CreditAccessManager.getUserCreditInfo(this,  new CreditAccessManager.OnCompleteListener<CreditInfo>() {    void onComplete(CreditInfo result) {      // amounts in paise      long creditTaken = result.getCreditTaken();      long creditLimit = result.getCreditLimit();    }  });

Credit Info (Full)#

To know more about the user's credit history and to allow for recollections:

Your Android App
CreditAccessManager.getUserCreditInfo(this,  new CreditAccessManager.OnCompleteListener<CreditInfoFull>() {    void onComplete(CreditInfoFull result) {      // amounts in paise      long creditTaken = result.getCreditTaken();      long creditLimit = result.getCreditLimit();      long totalOutstandingAmount = result.getTotalOutstandingAmount();      long dueAmount = result.getDueAmount();      String currentCycleDueDate = result.getCurrentCycleDueDate();      String repaymentLink = result.getRepaymentLink();    }  });