Optional features
Overview
SDK
Display the authentication timer
ContactlessTransactionListener paymentCallback = new ContactlessTransactionListener() {
@Override
public void onReadyToTap() {
// ...
// Register the timeout callback to update the end user on the
// remaining time before the second tap.
D1PayConfigParams.getInstance()
.getContactlessTransactionListener()
.registerDeviceAuthTimeoutCallback(
new DeviceAuthenticationTimeoutCallback() {
@Override
public void onTimer(int remain) {
// Update the countdown screen with the current
// remaining time.
}
@Override
public void onTimeout() {
// Inform the end user that authentication timed out.
}
}
);
// Inform the end user to tap again and show the countdown screen
// for the CDCVM validity period.
}
// ...
};Display transaction details
Enable or disable contactless payment
Last updated
Was this helpful?