retrieveSource
fun retrieveSource(@Size(min = 1) sourceId: String, @Size(min = 1) clientSecret: String, stripeAccountId: String? = this.stripeAccountId, callback: ApiResultCallback<Source>)
Retrieve a Source asynchronously.
See Retrieve a source. GET /v1/sources/:id
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.
callback
a ApiResultCallback to receive the result or error
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)