PersonToken API operations.
Summary
Functions
@spec create(Stripe.Client.t(), String.t(), map(), keyword()) :: {:ok, Stripe.Resources.V2.Core.AccountPersonToken.t()} | {:error, Stripe.Error.t()}
Create a person token
Creates a single-use token that represents the details for a person. Use this when you create or update persons associated with an Account v2. Learn more about account tokens. You can only create person tokens with your application's publishable key and in live mode. You can use your application's secret key to create person tokens only in test mode.
@spec retrieve(Stripe.Client.t(), String.t(), String.t(), map(), keyword()) :: {:ok, Stripe.Resources.V2.Core.AccountPersonToken.t()} | {:error, Stripe.Error.t()}
Retrieve a person token
Retrieves a Person Token associated with an Account.