OptionalcustomerThe email of the user. If undefined, RevenueCat will ask the customer for their email.
OptionaldefaultThe default locale to use if the selectedLocale is not available. Defaults to english.
Optional ExperimentaldiscountInitial discount code to display as applied in the Web Billing checkout. This is useful when the code originated outside of the checkout UI, for example from a URL parameter.
OptionalhtmlThe HTML element where the billing view should be added. If undefined, a new div will be created at the root of the page and appended to the body.
OptionalmetadataThe purchase metadata to be passed to the backend. Any information provided here will be propagated to the payment gateway and to the RC transaction as metadata.
Optional ExperimentalonCalled when the applied discount code changes in the Web Billing checkout. This can be used by host applications to keep external state, such as the URL, in sync with the checkout.
OptionalpurchaseThe option to be used for this purchase. If not specified or null the default one will be used.
The package you want to purchase. Obtained from Purchases.getOfferings.
OptionalselectedThe locale to use for the purchase flow. If not specified, English will be used
Optional ExperimentalshowIf set to true, the Web Billing checkout will show a discount input code field.
OptionalskipIf set to true, the SDK will skip the success page and automatically
continue the flow once the purchase completes successfully.
Defaults to false.
Parameters used to customise the purchase flow when invoking the
.purchasemethod.