-
public class SecureRemoteCommerce
Lets the application retrieve a nonce from Mastercard's Click-To-Pay.
-
-
Field Summary
Fields Modifier and Type Field Description private final Integer
DEFAULT_SECURE_REMOTE_COMMERCE_REQUEST_CODE
public final static SecureRemoteCommerce
INSTANCE
-
Method Summary
Modifier and Type Method Description final Unit
,SecureRemoteCommerceParameters,Integer)>createPaymentDataRequest(<ERROR CLASS> activity, SecureRemoteCommerceParameters masterpassParams, Integer requestCode)
Starts an activity that requests a verification token for a card paymentSourceId. final Unit
,Callback)>handleActivityResult(<ERROR CLASS> data, Callback<SecureRemoteCommerceNonceResult> callback)
Use this function to handle results of the Masterpass activity. final Integer
getDEFAULT_SECURE_REMOTE_COMMERCE_REQUEST_CODE()
-
-
Method Detail
-
createPaymentDataRequest
final Unit ,SecureRemoteCommerceParameters,Integer)>createPaymentDataRequest(<ERROR CLASS> activity, SecureRemoteCommerceParameters masterpassParams, Integer requestCode)
Starts an activity that requests a verification token for a card paymentSourceId.
- Parameters:
activity
- A reference to the activity that launches the challenge flow if needed.masterpassParams
- A MasterpassParameters object.requestCode
- This code will be returned in onActivityResult() when the activity exits.
-
handleActivityResult
final Unit ,Callback)>handleActivityResult(<ERROR CLASS> data, Callback<SecureRemoteCommerceNonceResult> callback)
Use this function to handle results of the Masterpass activity. This function should be called from Activity.onActivityResult with the provided data parameter. callback will be called immediately with the result of the Masterpass activity.BuyerVerificationActivityCommand
The callback is executed on the main thread.
- Parameters:
data
- The data parameter from Activity.callback
- A callback that will be immediately called back, if data corresponds to the result of a Masterpass activity.
-
getDEFAULT_SECURE_REMOTE_COMMERCE_REQUEST_CODE
final Integer getDEFAULT_SECURE_REMOTE_COMMERCE_REQUEST_CODE()
-
-
-
-