createPersonToken
fun createPersonToken(params: PersonTokenParams, idempotencyKey: String? = null, stripeAccountId: String? = this.stripeAccountId, callback: ApiResultCallback<Token>)
Creates a single-use token that represents the details for a person. Use this when creating or updating persons associated with a Connect account. See the documentation to learn more.
Parameters
params
the person token creation params
idempotencyKey
optional, see Idempotent Requests
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