Polar::Models::CheckoutPublic
Inherits JSON::Serializable < Struct < Value < Object
Model representing a CheckoutPublic
This struct is auto-generated from the Polar.sh OpenAPI specification.
It uses JSON::Serializable for automatic JSON parsing and serialization.
Constructors
Instance methods
Interval unit of the trial period, if any. This value is either set from the checkout, if trial_interval is set, or from the selected product.
Number of interval units of the trial period, if any. This value is either set from the checkout, if trial_interval_count is set, or from the selected product.
Whether to allow the customer to apply discount codes. If you apply a discount through discount_id, it'll still be applied, but the customer won't be able to change it.
Determine which billing address fields should be disabled, optional or required in the checkout form.
When checkout is embedded, represents the Origin of the page embedding the checkout. Used as a security measure to send messages only to the embedding page.
Whether the customer is a business or an individual. If true, the customer will be required to fill their full billing address and billing name.
Whether the discount is applicable to the checkout. Typically, free and custom prices are not discountable.
Whether the checkout requires a payment form, whether because of a payment or payment method setup.
Whether the checkout requires payment, e.g. in case of free products or discounts that cover the total amount.
Whether the checkout requires setting up a payment method, regardless of the amount, e.g. subscriptions that have first free cycles.
Price per seat in cents for the current seat count, based on the applicable tier. Only relevant for seat-based pricing.
Whether to require the customer to fill their full billing address, instead of just the country. Customers in the US will always be required to fill their full address, regardless of this setting. If you preset the billing address, this setting will be automatically set to true.
Status of the checkout session.
- Open: the checkout session was opened.
- Expired: the checkout session was expired and is no more accessible.
- Confirmed: the user on the checkout session clicked Pay. This is not indicative of the payment's success status.
- Failed: the checkout definitely failed for technical reasons and cannot be retried. In most cases, this state is never reached.
- Succeeded: the payment on the checkout was performed successfully.
Sales tax amount in cents. If null, it means there is no enough information yet to calculate it.