retrieveSourceSynchronous
fun retrieveSourceSynchronous(@Size(min = 1) sourceId: String, @Size(min = 1) clientSecret: String, stripeAccountId: String? = this.stripeAccountId): Source?
Retrieve an existing Source from the Stripe API. Do not call this on the UI thread or your app will crash.
See Retrieve a source. GET /v1/sources/:id
Return
a Source if one could be found based on the input params, or null
if no such Source could be found.
Parameters
sourceId
the Source.id field of the desired Source object
clientSecret
the Source.clientSecret field of the desired Source object
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.
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)