retrieveSetupIntent

suspend fun Stripe.retrieveSetupIntent(clientSecret: String, stripeAccountId: String? = this.stripeAccountId, expand: List<String> = emptyList()): SetupIntent

Retrieve a SetupIntent asynchronously.

See Retrieve a SetupIntent. GET /v1/setup_intents/:id

Return

a SetupIntent object

Parameters

clientSecret

the client_secret with which to retrieve the SetupIntent

stripeAccountId

Optional, the Connect account to associate with this request. By default, will use the Connect account that was used to instantiate the Stripe object, if specified.

expand

Optional, a list of keys to expand on the returned SetupIntent object.

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)