retrievePaymentIntentSynchronous

fun retrievePaymentIntentSynchronous(clientSecret: String, stripeAccountId: String? = this.stripeAccountId): PaymentIntent?

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

See Retrieve a PaymentIntent. GET /v1/payment_intents/:id

Return

a PaymentIntent or null if a problem occurred

Parameters

clientSecret

the client_secret with which to retrieve the PaymentIntent

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.