Optional ReadonlycustomerThe email of the customer starting the purchase. If passed the checkout flow will not ask for it to the customer.
Optional ReadonlycustomCustom variables to pass to the paywall at runtime, overriding defaults set in the RevenueCat dashboard.
Variables must be defined in the dashboard first. Reference them in paywall
text using the custom. prefix (e.g. {{ custom.player_name }}).
Optional Readonly ExperimentaldiscountInitial discount code to apply to the checkout when one already exists outside of the paywall UI, for example in the hosting page's URL.
Optional ReadonlyhideWhether to hide back buttons in the paywall. Defaults to false.
Optional ReadonlyhtmlThe target element where the paywall will be rendered. The paywall will create a full-screen overlay if null.
Optional ReadonlylistenerOptional listener for paywall purchase lifecycle events.
Optional ReadonlyofferingThe identifier of the offering to fetch the paywall for. Can be a string identifier or one of the predefined keywords.
Optional ReadonlyonCallback to be called when the paywall tries to navigate back.
Example:
onBack: (closePaywall) => {
// You may want to keep the paywall open while showing a confirmation
// modal or logging analytics, then close it if the user confirms.
// If you want the back action to dismiss the paywall immediately,
// call closePaywall() right away.
closePaywall();
}
Optional Readonly ExperimentalonCalled when the applied discount code changes in the checkout shown from the paywall. This can be used to sync host state such as URL parameters.
Optional ReadonlyonCallback to be called when the paywall tries to navigate to an external URL.
Markdown text links keep their native browser navigation. Use this callback for side effects or to customize how button-driven URL actions are handled.
Optional ReadonlyonCallback called when an error that won't close the paywall occurs. For example, a retryable error during the purchase process.
Optional ReadonlyonCallback to be called when the paywall tries to visit the customer center.
Optional ReadonlypurchaseThe target element where the checkout flow will be rendered. The checkout flow will create a full-screen overlay if null.
Optional ReadonlyselectedThe locale to use for the paywall and the checkout flow.
Optional Readonly ExperimentalshowIf set to true, the Web Billing checkout shown from the paywall will display a discount input code field.
Parameters for the Purchases.presentPaywall method.