New Features
Custom Dynamic Amount Support
Added support for custom dynamic amounts on the checkout page. You can now pass a specificcustom_amount directly via the checkout API, which is ideal for usage-based, variable, or custom-quoted pricing models.-
custom_amount: The specific numeric amount to be charged to the customer. This overrides static plan pricing and is ideal for usage-based, variable, or custom-quoted pricing models. -
tax_behavior: Specifies how taxes should be applied to the custom amount. For example, setting it to “INCLUSIVE” means the tax is already factored into the custom_amount, while “EXCLUSIVE” would add the tax on top of the base amount. -
currency_code: The three-letter ISO currency code (e.g., “INR”, “USD”) that defines the currency in which the custom_amount should be processed.
New Features
Enhanced Checkout Configuration
You can now pass additional configuration parameters when creating a checkout session via the API. These new fields allow for tighter control over the customer experience:lockEmail: When set totrue, the email address field on the checkout page is disabled, preventing customers from changing the email associated with the session.discountsEnabled: A boolean to explicitly allow or disallow discount code application on the checkout page.defaultBillingCountry: Pre-fills the billing country field (e.g.,"IN").