class Stripe::TokensApi
- Stripe::TokensApi
- Reference
- Object
Defined in:
stripe/api/tokens_api.crConstant Summary
-
GET_TOKENS_TOKEN_MAX_LENGTH_FOR_TOKEN =
5000
-
POST_TOKENS_MAX_LENGTH_FOR_CUSTOMER =
5000
Constructors
Instance Method Summary
- #api_client : ApiClient
- #api_client=(api_client : ApiClient)
-
#build_api_request_for_get_tokens_token(*, token : String | Nil = nil, expand : Array(Array(String)) | Nil = nil) : Crest::Request
@return Crest::Request
-
#build_api_request_for_post_tokens(*, account : Stripe::ConnectJsAccountTokenSpecs | Nil = nil, bank_account : Stripe::TokenCreateBankAccount | Nil = nil, card : Stripe::PostTokensRequestCard | Nil = nil, customer : String | Nil = nil, cvc_update : Stripe::CvcParams | Nil = nil, expand : Array(String) | Nil = nil, person : Stripe::PersonTokenSpecs | Nil = nil, pii : Stripe::PiiTokenSpecs | Nil = nil) : Crest::Request
@return Crest::Request
- #client_side_validation?(*args, **options)
- #client_side_validation?(*args, **options, &)
- #debugging?(*args, **options)
- #debugging?(*args, **options, &)
-
#get_tokens_token(*, token : String | Nil = nil, expand : Array(Array(String)) | Nil = nil) : Stripe::Token
Retrieves the token with the given ID.
@required @param token [String?] @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. -
#get_tokens_token(*, token : String | Nil = nil, expand : Array(Array(String)) | Nil = nil, &block : Crest::Response -> ) : Nil
<p>Retrieves the token with the given ID.</p> @required @param token [String?] @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded.
-
#get_tokens_token_with_http_info(*, token : String | Nil = nil, expand : Array(Array(String)) | Nil = nil) : Tuple(Stripe::Token, Int32, Hash(String, Array(String) | String))
<p>Retrieves the token with the given ID.</p> @required @param token [String?] @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded.
-
#post_tokens(*, account : Stripe::ConnectJsAccountTokenSpecs | Nil = nil, bank_account : Stripe::TokenCreateBankAccount | Nil = nil, card : Stripe::PostTokensRequestCard | Nil = nil, customer : String | Nil = nil, cvc_update : Stripe::CvcParams | Nil = nil, expand : Array(String) | Nil = nil, person : Stripe::PersonTokenSpecs | Nil = nil, pii : Stripe::PiiTokenSpecs | Nil = nil) : Stripe::Token
Creates a single-use token that represents a bank account’s details.
-
#post_tokens(*, account : Stripe::ConnectJsAccountTokenSpecs | Nil = nil, bank_account : Stripe::TokenCreateBankAccount | Nil = nil, card : Stripe::PostTokensRequestCard | Nil = nil, customer : String | Nil = nil, cvc_update : Stripe::CvcParams | Nil = nil, expand : Array(String) | Nil = nil, person : Stripe::PersonTokenSpecs | Nil = nil, pii : Stripe::PiiTokenSpecs | Nil = nil, &block : Crest::Response -> ) : Nil
<p>Creates a single-use token that represents a bank account’s details.
-
#post_tokens_with_http_info(*, account : Stripe::ConnectJsAccountTokenSpecs | Nil = nil, bank_account : Stripe::TokenCreateBankAccount | Nil = nil, card : Stripe::PostTokensRequestCard | Nil = nil, customer : String | Nil = nil, cvc_update : Stripe::CvcParams | Nil = nil, expand : Array(String) | Nil = nil, person : Stripe::PersonTokenSpecs | Nil = nil, pii : Stripe::PiiTokenSpecs | Nil = nil) : Tuple(Stripe::Token, Int32, Hash(String, Array(String) | String))
<p>Creates a single-use token that represents a bank account’s details.
Constructor Detail
Instance Method Detail
@return Crest::Request
@return Crest::Request
Retrieves the token with the given ID.
@required @param token [String?] @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return [Stripe::Token]<p>Retrieves the token with the given ID.</p> @required @param token [String?] @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return nil
<p>Retrieves the token with the given ID.</p> @required @param token [String?] @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return [Tuple(Stripe::Token, Integer, Hash)] Stripe::Token, response status code and response headers
Creates a single-use token that represents a bank account’s details. You can use this token with any API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a connected account where controller.requirement_collection is application
, which includes Custom accounts.
<p>Creates a single-use token that represents a bank account’s details. You can use this token with any API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a <a href="#accounts">connected account</a> where <a href="/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a> is <code>application</code>, which includes Custom accounts.</p> @optional @param account [Stripe::ConnectJsAccountTokenSpecs?] @optional @param bank_account [Stripe::TokenCreateBankAccount?] @optional @param card [Stripe::PostTokensRequestCard?] @optional @param customer [String?] Create a token for the customer, which is owned by the application's account. You can only use this with an OAuth access token or Stripe-Account header. Learn more about cloning saved payment methods. @optional @param cvc_update [Stripe::CvcParams?] @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @optional @param person [Stripe::PersonTokenSpecs?] @optional @param pii [Stripe::PiiTokenSpecs?] @return nil
<p>Creates a single-use token that represents a bank account’s details. You can use this token with any API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a <a href="#accounts">connected account</a> where <a href="/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a> is <code>application</code>, which includes Custom accounts.</p> @optional @param account [Stripe::ConnectJsAccountTokenSpecs?] @optional @param bank_account [Stripe::TokenCreateBankAccount?] @optional @param card [Stripe::PostTokensRequestCard?] @optional @param customer [String?] Create a token for the customer, which is owned by the application's account. You can only use this with an OAuth access token or Stripe-Account header. Learn more about cloning saved payment methods. @optional @param cvc_update [Stripe::CvcParams?] @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @optional @param person [Stripe::PersonTokenSpecs?] @optional @param pii [Stripe::PiiTokenSpecs?] @return [Tuple(Stripe::Token, Integer, Hash)] Stripe::Token, response status code and response headers