File tree Expand file tree Collapse file tree
apps/payments/next/app/[locale]/subscriptions/payments/stripe
libs/payments/ui/src/lib/client/components/PaymentMethodManagement Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ export default async function StripePaymentManagementPage({
6161 uid = { session ?. user ?. id }
6262 defaultPaymentMethod = { defaultPaymentMethod }
6363 sessionEmail = { session ?. user ?. email ?? undefined }
64+ locale = { locale }
6465 />
6566 </ StripeManagementWrapper >
6667 </ section >
Original file line number Diff line number Diff line change @@ -30,13 +30,15 @@ export function PaymentMethodManagement({
3030 uid,
3131 defaultPaymentMethod,
3232 sessionEmail,
33+ locale,
3334} : {
3435 uid ?: string ;
3536 defaultPaymentMethod ?: {
3637 id : string ;
3738 type ?: string ;
3839 } ;
3940 sessionEmail ?: string ;
41+ locale : string ;
4042} ) {
4143 const { l10n } = useLocalization ( ) ;
4244 const stripe = useStripe ( ) ;
@@ -199,7 +201,7 @@ export function PaymentMethodManagement({
199201 if ( result . status === 'requires_action' && result . clientSecret ) {
200202 await handleNextAction ( result . clientSecret ) ;
201203 }
202- router . refresh ( ) ;
204+ router . push ( `/ ${ locale } /subscriptions/manage` ) ;
203205 }
204206 } catch ( error ) {
205207 console . error ( error ) ;
You can’t perform that action at this time.
0 commit comments