Stripe::CheckoutSession
Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object
A Checkout Session represents your customer's session as they pay for one-time purchases or subscriptions through Checkout or Payment Links. We recommend creating a new Session each time your customer attempts to pay. Once payment is successful, the Checkout Session will contain a reference to the Customer, and either the successful PaymentIntent or an active Subscription. You can create a Checkout Session on your server and redirect to its URL to begin Checkout. Related guide: Checkout quickstart
Constants
Constructors
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance methods
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] after_expiration Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] allow_promotion_codes Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] amount_subtotal Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] amount_total Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] automatic_tax Object to be assigned
Describes whether Checkout should collect the customer's billing address. Defaults to auto.
Custom attribute writer method checking allowed values (enum). @param [Object] billing_address_collection Object to be assigned
If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website.
Custom attribute writer method checking allowed values (enum). @param [Object] cancel_url Object to be assigned
A unique string to reference the Checkout Session. This can be a customer ID, a cart ID, or similar, and can be used to reconcile the Session with your internal systems.
Custom attribute writer method checking allowed values (enum). @param [Object] client_reference_id Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] client_secret Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] consent Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] consent_collection Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] created Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] currency Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] currency_conversion Object to be assigned
Collect additional information from your customer using custom fields. Up to 3 fields are supported.
Custom attribute writer method checking allowed values (enum). @param [Object] custom_fields Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] custom_text Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] customer Object to be assigned
Configure whether a Checkout Session creates a Customer when the Checkout Session completes.
Custom attribute writer method checking allowed values (enum). @param [Object] customer_creation Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] customer_details Object to be assigned
If provided, this value will be used when the Customer object is created. If not provided, customers will be asked to enter their email address. Use this parameter to prefill customer data if you already have an email on file. To access information about the customer once the payment flow is complete, use the customer attribute.
Custom attribute writer method checking allowed values (enum). @param [Object] customer_email Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] expires_at Object to be assigned
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] id Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] invoice Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] invoice_creation Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] line_items Object to be assigned
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Has the value true if the object exists in live mode or the value false if the object exists in test mode.
Custom attribute writer method checking allowed values (enum). @param [Object] livemode Object to be assigned
The IETF language tag of the locale Checkout is displayed in. If blank or auto, the browser's locale is used.
Custom attribute writer method checking allowed values (enum). @param [Object] locale Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] metadata Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] mode Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] object Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] payment_intent Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] payment_link Object to be assigned
Configure whether a Checkout Session should collect a payment method. Defaults to always.
Custom attribute writer method checking allowed values (enum). @param [Object] payment_method_collection Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] payment_method_configuration_details Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] payment_method_options Object to be assigned
A list of the types of payment methods (e.g. card) this Checkout Session is allowed to accept.
Custom attribute writer method checking allowed values (enum). @param [Object] payment_method_types Object to be assigned
The payment status of the Checkout Session, one of paid, unpaid, or no_payment_required. You can use this value to decide when to fulfill your customer's order.
Custom attribute writer method checking allowed values (enum). @param [Object] payment_status Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] phone_number_collection Object to be assigned
The ID of the original expired Checkout Session that triggered the recovery flow.
Custom attribute writer method checking allowed values (enum). @param [Object] recovered_from Object to be assigned
This parameter applies to ui_mode: embedded. Learn more about the redirect behavior of embedded sessions. Defaults to always.
Custom attribute writer method checking allowed values (enum). @param [Object] redirect_on_completion Object to be assigned
Applies to Checkout Sessions with ui_mode: embedded. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
Custom attribute writer method checking allowed values (enum). @param [Object] return_url Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] saved_payment_method_options Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] setup_intent Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] shipping_address_collection Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] shipping_cost Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] shipping_details Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] shipping_options Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] status Object to be assigned
Describes the type of transaction being performed by Checkout in order to customize relevant text on the page, such as the submit button. submit_type can only be specified on Checkout Sessions in payment mode. If blank or auto, pay is used.
Custom attribute writer method checking allowed values (enum). @param [Object] submit_type Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] subscription Object to be assigned
The URL the customer will be directed to after the payment or subscription creation is successful.
Custom attribute writer method checking allowed values (enum). @param [Object] success_url Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] tax_id_collection Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] total_details Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] ui_mode Object to be assigned
The URL to the Checkout Session. Redirect customers to this URL to take them to Checkout. If you’re using Custom Domains, the URL will use your subdomain. Otherwise, it’ll use checkout.stripe.com. This value is only present when the session is active.
Custom attribute writer method checking allowed values (enum). @param [Object] url Object to be assigned
Check to see if the all the properties in the model are valid @return true if the model is valid