[web] use the correct Stripe payment confirmation function for upgrades (#29151)

GitOrigin-RevId: d7447d180f1c0320989d7f86bb1d46173e235e46
This commit is contained in:
Kristina
2025-10-22 08:05:46 +00:00
committed by Copybot
parent 129ea72d36
commit 16db851978
13 changed files with 165 additions and 7 deletions
@@ -0,0 +1,30 @@
import { Trans } from 'react-i18next'
import OLNotification from '@/shared/components/ol/ol-notification'
import getMeta from '@/utils/meta'
export default function RedirectedPaymentErrorNotification() {
const hasRedirectedPaymentError = Boolean(
getMeta('ol-subscriptionPaymentErrorCode')
)
if (!hasRedirectedPaymentError) {
return null
}
return (
<OLNotification
className="mb-4"
aria-live="polite"
content={
<Trans
i18nKey="payment_error_generic"
components={[
/* eslint-disable-next-line jsx-a11y/anchor-has-content, react/jsx-key */
<a href="/contact" target="_blank" />,
]}
/>
}
type="error"
/>
)
}