diff --git a/ghost/portal/src/components/Notification.js b/ghost/portal/src/components/Notification.js index 0414919799..25ddc17c0b 100644 --- a/ghost/portal/src/components/Notification.js +++ b/ghost/portal/src/components/Notification.js @@ -64,6 +64,20 @@ const NotificationText = ({type, status, context}) => { Success! Check your email for magic link to sign-in.
); + } else if (type === 'stripe:checkout' && status === 'warning') { + // Stripe checkout flow was cancelled + if (context.member) { + return ( ++ Plan upgrade was cancelled. +
+ ); + } + return ( ++ Plan checkout was cancelled. +
+ ); } return ( <>> diff --git a/ghost/portal/src/utils/notifications.js b/ghost/portal/src/utils/notifications.js index 042253a9ed..b112926b26 100644 --- a/ghost/portal/src/utils/notifications.js +++ b/ghost/portal/src/utils/notifications.js @@ -11,7 +11,7 @@ export const handleAuthActions = ({qsParams, action, status}) => { return {}; }; -export const handleStripeActions = ({qsParams, status, billingOnly}) => { +export const handleStripeActions = ({status, billingOnly}) => { if (!billingOnly && ['cancel', 'success'].includes(status)) { const statusVal = status === 'success' ? 'success' : 'warning'; return {