struct

Polar::Models::CheckoutLinkCreateProductPrice

Inherits JSON::Serializable < Struct < Value < Object

Model representing a CheckoutLinkCreateProductPrice

This struct is auto-generated from the Polar.sh OpenAPI specification. It uses JSON::Serializable for automatic JSON parsing and serialization.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

allow_discount_codes

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.

Source
discount_id

ID of the discount to apply to the checkout. If the discount is not applicable anymore when opening the checkout link, it'll be ignored.

Source
label

Optional label to distinguish links internally

Source
metadata

Key-value object allowing you to store additional information.

The key must be a string with a maximum length of 40 characters. The value must be either:

A string with a maximum length of 500 characters An integer A floating-point number A boolean

You can store up to 50 key-value pairs.

Source
payment_processor

Payment processor to use. Currently only Stripe is supported.

Source
product_price_id
Source
require_billing_address

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.

Source
success_url

URL where the customer will be redirected after a successful payment.You can add the checkout_id={CHECKOUT_ID} query parameter to retrieve the checkout session id.

Source
trial_interval

The interval unit for the trial period.

Source
trial_interval_count

The number of interval units for the trial period.

Source