Package com.meawallet.mtp
Interface MeaRemoteTransactionListener
-
public interface MeaRemoteTransactionListener
Interface describing the various remote (DSRP) transaction events.App developers should create a local instance of this class and pass it to
MeaCard.processRemoteTransaction(MeaRemotePaymentData, MeaRemoteTransactionListener)
to listen for events.onRemoteCompleted(MeaCard, MeaRemoteTransactionOutcome)
andonRemoteFailed(MeaCard, MeaError)
are invoked on the Main / UI thread after the background computation finishes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onAuthenticationRequired(MeaCard meaCard, MeaRemotePaymentData data)
Authentication is required to complete DSRP transaction.void
onRemoteCompleted(MeaCard meaCard, MeaRemoteTransactionOutcome remoteTransactionOutcome)
Called when operation completed successfully.void
onRemoteFailed(MeaCard meaCard, MeaError error)
Called when operation failed.
-
-
-
Method Detail
-
onRemoteCompleted
@UiThread void onRemoteCompleted(@NonNull MeaCard meaCard, @NonNull MeaRemoteTransactionOutcome remoteTransactionOutcome)
Called when operation completed successfully.- Parameters:
meaCard
- The card for which remote transaction has been successful.remoteTransactionOutcome
- Remote transaction outcome.
-
onRemoteFailed
@UiThread void onRemoteFailed(@NonNull MeaCard meaCard, @NonNull MeaError error)
Called when operation failed.- Parameters:
meaCard
- The card for which remote transaction has failed.error
- Remote transaction error.
-
onAuthenticationRequired
@UiThread void onAuthenticationRequired(@NonNull MeaCard meaCard, @NonNull MeaRemotePaymentData data)
Authentication is required to complete DSRP transaction.- Parameters:
meaCard
- The card for which authentication is required.data
- Remote transaction data.
-
-