getAuthenticateSourceResult

suspend fun Stripe.getAuthenticateSourceResult(requestCode: Int, data: Intent): Source

Get the Source from Intent returned via Activity#onActivityResult(int, int, Intent)}} for Source authentication. (see Stripe.authenticateSource)

Parameters

requestCode

Int code passed from Activity#onActivityResult

data

Intent intent from Activity#onActivityResult

Throws

AuthenticationException

failure to properly authenticate yourself (check your key)

InvalidRequestException

your request has invalid parameters

APIConnectionException

failure to connect to Stripe's API

APIException

any other type of problem (for instance, a temporary issue with Stripe's servers)