mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
896918bc79
https://github.com/fleetdm/fleet/issues/9172 Changes: - Added `website/api/controllers/webhooks/recieve-stripe-subscription-events.js` a webhook for receiving Stripe events. - If the stripe event received is from a user's subscription automatically renewing, A new license key is generated, the subscription record is updated, and a renewal confirmation email is sent. - If the stripe event received is from a user's subscription's upcoming renewal, a renewal notification email is sent. - If any other event type is received from Stripe, the webhook returns a 200 response. - Added new email templates: - `email-subscription-renewal-confirmation` - `email-upcoming-subscription-renewal` - Updated `website/api/controllers/admin/view-email-template-preview.js` to have fake data for the added email templates. - Updated `website/api/controllers/customers/view-dashboard.js` to set two boolean variables: `subscriptionExpiresSoon` and `subscriptionHasBeenRecentlyRenewed` - Updated the customer dashboard to display notifications on the top of the page if a user's subscription will renew in the next 30 days, or if the user's subscription has been renewed in the past 30 days. - `website/views/layouts/layout-email.ejs` - Updated the font, padding, and text color to match wireframes.
1.1 KiB
Vendored
48x48px
1.1 KiB
Vendored
48x48px