Use issuer application authentication
Let the issuer application manage Android device authentication during payment.
Overview
Flow
SDK
ContactlessTransactionListener paymentCallback = new ContactlessTransactionListener() {
@Override
public void onAuthenticationRequired(@NonNull VerificationMethod method) {
// The issuer application manages Android device authentication.
// If authentication succeeds, provide the authentication timestamp.
// Call this API as soon as possible so the end user still has enough
// time to perform the second tap.
D1PayConfigParams.getInstance()
.getContactlessTransactionListener()
.onDelegatedDeviceAuthenticationSucceeded(System.currentTimeMillis());
// If the end user cancels authentication, cancel the transaction.
D1PayConfigParams.getInstance()
.getContactlessTransactionListener()
.onDelegatedDeviceAuthenticationCancelled();
}
// ...
};
// Register the contactless transaction callback.
D1PayConfigParams configParams = D1PayConfigParams.getInstance();
configParams.setContactlessTransactionListener(paymentCallback);Last updated
Was this helpful?