getSetupIntentResult

suspend fun Stripe.getSetupIntentResult(requestCode: Int, data: Intent): SetupIntentResult

Get the SetupIntentResult from Intent returned via Activity#onActivityResult(int, int, Intent)}} for SetupIntentResult confirmation. (see confirmSetupIntent)

Parameters

requestCode

Int code passed from Activity#onActivityResult

data

Intent intent from Activity#onActivityResult

Throws

failure to properly authenticate yourself (check your key)

your request has invalid parameters

failure to connect to Stripe's API

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