File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change 11import { redirect } from "next/navigation" ;
2- import { getUser } from "~/auth/server" ;
32
43export default async function PaymentCancelPage ( {
54 searchParams,
65} : {
76 searchParams : Promise < { redirect ?: string } > ;
87} ) {
98 const params = await searchParams ;
10- const user = await getUser ( ) ;
11-
12- // TODO: handle any user subscription related to the user
13- console . log ( "[stripe/cancel]" , user ) ;
14-
159 redirect ( params . redirect || "/" ) ;
1610}
Original file line number Diff line number Diff line change 11import { redirect } from "next/navigation" ;
2- import { getUser } from "~/auth/server" ;
32
43export default async function PaymentSuccessPage ( {
54 searchParams,
65} : {
76 searchParams : Promise < { redirect ?: string } > ;
87} ) {
98 const params = await searchParams ;
10- const user = await getUser ( ) ;
11-
12- console . log ( "[stripe/success]" , user ) ;
13-
149 redirect ( params . redirect || "/" ) ;
1510}
You can’t perform that action at this time.
0 commit comments