Only Available for 'Membership Plus' license. If license is not added in the merchant facility then site users won't be able to see alerts.
1. Introduction
A new Lightning web component (LWC) is introduced and it is compatible with both Aura and LWR communities. The is basically an alert component and it can show 3 type of alerts to the experience site user:
- Membership Expiry
- Alert will start showing up when (nnn) number of days will be left in subscription/account subscription expiry date.
- Number of days from the expiry date can be defined in the component's parameter.
- There will be a link in the message where the user can renew membership.
- Card Expiry
- Alert will start showing up when (nnn) number of days will be left in card subscription expiry.
- Number of days from the expiry date can be defined in the component's parameter.
- There will be a link in the message where the user can update card details.
- Card Failed
- Alert will start showing up when number of retry attempts is greater than 1 or status is "Suspended - Max Retries" on the recurring payment related to subscription/account subscription.
- There will be a link in the message where the user can update card details.
2. Setup in Experience Site
Go to Setup -> All Sites -> Open builder of the experience site.
- Click on the lightning icon (components tab) from the left bar
- Search for 'Payments2Us Subscription Alerts' in the search bar.
- Drag and drop the component at a suitable location.
3. Set Parameters
Payments2Us Subscription Alert component have following parameters:
- Alert Type: Select the type of alert from the three types discussed in the Introduction section of this article.
- Number of Days: Populate number of days and alert will start showing once that number of days are left in expiry. (Applicable for Membership and Card Expiry. Add any value for Card Failed.)
- Alert Message: Populate the message that you want to display in the alert.
- Alert Message Color: Color of the message text shown on the site. By default it is black.
- Alert Background Color: Color of the background of alert view. By default it is light-gray.
- Alert Icon and Text Color: Color of alert icon and "Alert" keyword. By default it is red.
- Allow non-primary to update Membership Details: Default is false. If checked, then view membership alters, renew memberships and perform card updates.
4. Multiple Alerts
Repeat the steps listed in heading 2 and 3 if you want to add all three types of alerts in your site.
5. Styling
Besides changing the colors and messages text, other styling like font size can also be updated. For details please refer to Experience Cloud Membership Components Styling article.