Class PersonTokenService
java.lang.Object
com.stripe.net.ApiService
com.stripe.service.v2.core.accounts.PersonTokenService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a single-use token that represents the details for a person.create(String accountId, RequestOptions options) Creates a single-use token that represents the details for a person.create(String accountId, PersonTokenCreateParams params) Creates a single-use token that represents the details for a person.create(String accountId, PersonTokenCreateParams params, RequestOptions options) Creates a single-use token that represents the details for a person.Retrieves a Person Token associated with an Account.retrieve(String accountId, String id, RequestOptions options) Retrieves a Person Token associated with an Account.Methods inherited from class com.stripe.net.ApiService
getResponseGetter, request, requestStream
-
Constructor Details
-
PersonTokenService
-
-
Method Details
-
create
public AccountPersonToken create(String accountId, PersonTokenCreateParams params) throws StripeException, RateLimitException 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.- Throws:
StripeExceptionRateLimitException
-
create
public AccountPersonToken create(String accountId, RequestOptions options) throws StripeException, RateLimitException 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.- Throws:
StripeExceptionRateLimitException
-
create
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.- Throws:
StripeExceptionRateLimitException
-
create
public AccountPersonToken create(String accountId, PersonTokenCreateParams params, RequestOptions options) throws StripeException, RateLimitException 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.- Throws:
StripeExceptionRateLimitException
-
retrieve
public AccountPersonToken retrieve(String accountId, String id) throws StripeException, RateLimitException Retrieves a Person Token associated with an Account.- Throws:
StripeExceptionRateLimitException
-
retrieve
public AccountPersonToken retrieve(String accountId, String id, RequestOptions options) throws StripeException, RateLimitException Retrieves a Person Token associated with an Account.- Throws:
StripeExceptionRateLimitException
-