retrieveSetupIntentSynchronous

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

Blocking method to retrieve a SetupIntent object. Do not call this on the UI thread or your app will crash.

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

Return

a SetupIntent or null if a problem occurred

Parameters

clientSecret

client_secret of the SetupIntent to retrieve

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.