Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 841 Bytes

File metadata and controls

19 lines (15 loc) · 841 Bytes

PaywallPopup

Note

This component is only intended for use with bootstrap.ts.

  1. This component extends the Slide.preset component.
  2. It overrides the default behavior of the MainButton inside the Slide.preset component.
  3. It manages the MainButton with its own logic, including:
    • Translating the mainButtonText.
    • Replacing {price} inside the mainButtonText.
    • Displaying a popup with the payment method.
    • Tracking the selected product.
    • If a product isn't selected, the MainButton won't be displayed
  4. It renders Link.
  5. It sends data to the bot when the payment method is selected.

Props

All available props see in PrimitivePaywall.props.ts