diff --git a/src/pages/api/paypal/index.ts b/src/pages/api/paypal/index.ts index 9b01efe8..0f57adef 100644 --- a/src/pages/api/paypal/index.ts +++ b/src/pages/api/paypal/index.ts @@ -60,6 +60,9 @@ async function handler(req: NextApiRequest, res: NextApiResponse) { payment_source: { paypal: { email_address: req.session.user.email || "", + address: { + postal_code: "1234", + }, experience_context: { payment_method_preference: "IMMEDIATE_PAYMENT_REQUIRED", locale: "en-US", diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 59401b80..b74662b4 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -35,7 +35,6 @@ import Select from "react-select"; import {USER_TYPE_LABELS} from "@/resources/user"; export const getServerSideProps = withIronSessionSsr(({req, res}) => { - debugger; const user = req.session.user; const envVariables: {[key: string]: string} = {}; @@ -65,7 +64,6 @@ interface Props { } export default function Home(props: Props) { const { envVariables} = props; - debugger; const [showDiagnostics, setShowDiagnostics] = useState(false); const [showDemographicInput, setShowDemographicInput] = useState(false); const [selectedScreen, setSelectedScreen] = useState("admin");