mirror of
https://github.com/fleetdm/fleet
synced 2026-05-15 13:08:42 +00:00
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. |
||
|---|---|---|
| .. | ||
| create-quote.js | ||
| save-billing-info-and-subscribe.js | ||
| view-dashboard.js | ||
| view-new-license.js | ||