class Stripe::CustomerSessionsApi
- Stripe::CustomerSessionsApi
- Reference
- Object
Defined in:
stripe/api/customer_sessions_api.crConstant Summary
-
POST_CUSTOMER_SESSIONS_MAX_LENGTH_FOR_CUSTOMER =
5000
Constructors
Instance Method Summary
- #api_client : ApiClient
- #api_client=(api_client : ApiClient)
-
#build_api_request_for_post_customer_sessions(*, components : Stripe::Components | Nil = nil, customer : String | Nil = nil, expand : Array(String) | Nil = nil) : Crest::Request
@return Crest::Request
- #client_side_validation?(*args, **options)
- #client_side_validation?(*args, **options, &)
- #debugging?(*args, **options)
- #debugging?(*args, **options, &)
-
#post_customer_sessions(*, components : Stripe::Components | Nil = nil, customer : String | Nil = nil, expand : Array(String) | Nil = nil) : Stripe::CustomerSession
Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
@required @param components [Stripe::Components?] @required @param customer [String?] The ID of an existing customer for which to create the Customer Session. -
#post_customer_sessions(*, components : Stripe::Components | Nil = nil, customer : String | Nil = nil, expand : Array(String) | Nil = nil, &block : Crest::Response -> ) : Nil
<p>Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.</p> @required @param components [Stripe::Components?] @required @param customer [String?] The ID of an existing customer for which to create the Customer Session.
-
#post_customer_sessions_with_http_info(*, components : Stripe::Components | Nil = nil, customer : String | Nil = nil, expand : Array(String) | Nil = nil) : Tuple(Stripe::CustomerSession, Int32, Hash(String, Array(String) | String))
<p>Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.</p> @required @param components [Stripe::Components?] @required @param customer [String?] The ID of an existing customer for which to create the Customer Session.
Constructor Detail
Instance Method Detail
@return Crest::Request
Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
@required @param components [Stripe::Components?] @required @param customer [String?] The ID of an existing customer for which to create the Customer Session. @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @return [Stripe::CustomerSession]<p>Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.</p> @required @param components [Stripe::Components?] @required @param customer [String?] The ID of an existing customer for which to create the Customer Session. @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @return nil
<p>Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.</p> @required @param components [Stripe::Components?] @required @param customer [String?] The ID of an existing customer for which to create the Customer Session. @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @return [Tuple(Stripe::CustomerSession, Integer, Hash)] Stripe::CustomerSession, response status code and response headers