retrievePaymentIntent

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

Retrieve a PaymentIntent from a coroutine.

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

Return

a PaymentIntent object

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.

expand

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

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)