verify

fun verify(activity: Activity, verificationParameters: VerificationParameters, requestCode: Int = DEFAULT_BUYER_VERIFICATION_REQUEST_CODE)

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.

verificationParameters

A VerificationParameters object that contains a paymentSourceId, a BuyerAction, SquareIdentifier squareIdentifier, and Contact information

requestCode

This code will be returned in onActivityResult() when the activity exits. The default value is DEFAULT_BUYER_VERIFICATION_REQUEST_CODE.

See also

to handle the result of the buyer verification activity.