Interface MeaCardReplenishListener


  • public interface MeaCardReplenishListener
    Interface describing the various card payment tokens replenish events.

    App developers should create a local instance of this class and pass it to MeaTokenPlatform.setCardReplenishListener(MeaCardReplenishListener) to listen for events. Event callbacks are invoked on the Main / UI thread after the background computation finishes.

    • Method Detail

      • onReplenishCompleted

        @UiThread
        void onReplenishCompleted​(@NonNull
                                  MeaCard meaCard,
                                  int numberOfPaymentTokens)
        Called when operation completed successfully.
        Parameters:
        meaCard - The card for which replenish payment tokens has been completed.
        numberOfPaymentTokens - Number of payment tokens received.
      • onReplenishFailed

        @UiThread
        void onReplenishFailed​(@NonNull
                               MeaCard meaCard,
                               @NonNull
                               MeaError error)
        Called when operation failed.
        Parameters:
        meaCard - The card for which replenish has failed.
        error - Replenish failure error.