Interface MGTransactionHistoryService
public interface MGTransactionHistoryService
MGTransactionHistoryService provides API to request transaction history performed on provided card
Same API can be used for Transaction Notification as MPA need to pass digitalCardId and timestamp
received from push notification to query for notification detail
-
Method Summary
Modifier and TypeMethodDescriptionvoidrefreshHistory(String accessToken, String digitalCardId, String timeStamp, TransactionHistoryListener transactionHistoryListener) Use this method to get transactions performed after provided timestamp.voidrefreshHistory(String accessToken, String digitalCardId, String timeStamp, String transactionRecordType, TransactionHistoryListener transactionHistoryListener) Use this method to retrieve transactions performed after the specified timestamp and transactionRecordType.
-
Method Details
-
refreshHistory
void refreshHistory(String accessToken, String digitalCardId, String timeStamp, TransactionHistoryListener transactionHistoryListener) Use this method to get transactions performed after provided timestamp. If user passes empty timeStamp then all previous transactions performed on provided card will be returned in server response- Parameters:
accessToken- accessToken of the digital card, received from CPS sdkdigitalCardId- digital cardId of the card for which the transactions are requested
Digitized card ID shared by the HCE platform components (Different than token ID)timeStamp- (Optional) request for the transactions performed after provided timestamp, if passed empty or null: onSuccess of result will contain all transactions performed for provided cardtransactionHistoryListener- transaction history listener is used as callback for refreshHistory. onSuccess and onError method returns the server response
-
refreshHistory
void refreshHistory(String accessToken, String digitalCardId, String timeStamp, @Nullable String transactionRecordType, TransactionHistoryListener transactionHistoryListener) Use this method to retrieve transactions performed after the specified timestamp and transactionRecordType. If the user provides an empty timeStamp and transactionRecordType, the server will return all previous transactions associated with the specified card, filtered by the provided transaction record type.- Parameters:
accessToken- accessToken of the digital card, received from CPS sdkdigitalCardId- digital cardId of the card for which the transactions are requested
Digitized card ID shared by the HCE platform components (Different than token ID)timeStamp- (Optional) request for the transactions performed after provided timestamp, if passed empty or null: onSuccess of result will contain all transactions performed for provided cardtransactionRecordType- A string value derived from the push notification payload.transactionHistoryListener- transaction history listener is used as callback for refreshHistory. onSuccess and onError method returns the server response- Since:
- 6.12
-