Interface MastercardTAFHelper
-
public interface MastercardTAFHelperMastercardTAFHelperis used to bind thetokenIdto the device and authenticate transactions.- Since:
- 3.0.0
- Version:
- 3.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidauthenticateTransaction(String tokenID, TransactionContext transactionContext, TransactionListener transactionListener)Authenticates the transaction for tokenID.voidcreateBinding(String tokenId, String correlationId, TokenBindingListener tokenBindingListener)Binds Mastercard tokenId to the device.BindingStategetBindingState(String tokenID)Gets the binding status.
-
-
-
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
-
getBindingState
BindingState getBindingState(@NonNull String tokenID) throws TMGClientException
Gets the binding status.- Parameters:
tokenID- A Mastercard provisioned token ID in which the binding state is queried. This is a mandatory input.- Returns:
- The current
BindingStateof the token. - Throws:
TMGClientException- In cases where there are invalid parameters or a crypto error occurs.
Possible errors:
- Since:
- v3.0.0
-
-