Support transaction history
Overview
Flow
Handle transaction notifications
Retrieve transaction history
SDK
fun getTransactionHistory(d1Task: D1Task, cardId: String) {
val d1PayWallet: D1PayWallet = d1Task.d1PayWallet
d1PayWallet.getTransactionHistory(cardId,
object : D1Task.Callback<TransactionHistory?> {
override fun onSuccess(data: TransactionHistory?) {
// Update the UI, for example by showing the transaction history list.
}
override fun onError(exception: D1Exception) {
// Handle the error.
}
}
)
}public void getTransactionHistory(@NonNull D1Task d1Task, @NonNull String cardId) {
D1PayWallet d1PayWallet = d1Task.getD1PayWallet();
d1PayWallet.getTransactionHistory(cardId,
new D1Task.Callback<TransactionHistory>() {
@Override
public void onSuccess(@Nullable TransactionHistory data) {
// Update the UI, for example by showing the transaction history list.
}
@Override
public void onError(@NonNull D1Exception exception) {
// Handle the error.
}
}
);
}Last updated
Was this helpful?