Interface MastercardTAFHelper


  • public interface MastercardTAFHelper
    MastercardTAFHelper is used to bind the tokenId to the device and authenticate transactions.
    Since:
    3.0.0
    Version:
    3.0.0
    • Method Detail

      • createBinding

        void createBinding​(@NonNull
                           String tokenId,
                           @NonNull
                           String correlationId,
                           @NonNull
                           TokenBindingListener tokenBindingListener)
        Binds Mastercard tokenId to the device.
        Parameters:
        tokenId - A Mastercard provisioned token ID. This is a mandatory input that is retrieved during the tokenization process.
        correlationId - A correlationId ID generated by the merchant backend. It is a technical identifier used which is a mandatory input for troubleshooting.
        tokenBindingListener - The callback for the merchant app to take an action and to provide the final status of token binding. This is a mandatory input.
        Since:
        v3.0.0
      • authenticateTransaction

        void authenticateTransaction​(@NonNull
                                     String tokenID,
                                     @NonNull
                                     TransactionContext transactionContext,
                                     @NonNull
                                     TransactionListener transactionListener)
        Authenticates the transaction for tokenID.
        Parameters:
        tokenID - A Mastercard provisioned token ID. This is a mandatory input that is retrieved during the tokenization process.
        transactionContext - The context of the transaction, containing critical details about the transaction such as merchant information, amount, and currency. This parameter cannot be null.
        transactionListener - The callback for the merchant app to take an action and to provide the final status of token binding. This is a mandatory input.
        Since:
        v3.0.0