From 31dfe0ec710da8ce156507eba9df470a58cc2732 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Dec 2025 06:53:17 +0000 Subject: [PATCH 1/2] Initial plan From b91cdd6510bc3569bc7ac5143aff91657e490d3f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Dec 2025 06:55:48 +0000 Subject: [PATCH 2/2] Replace any type with PaymentIntentResult for type safety Co-authored-by: benhalverson <7907232+benhalverson@users.noreply.github.com> --- src/pages/Payment.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/Payment.tsx b/src/pages/Payment.tsx index 2f3737b..2bec04c 100644 --- a/src/pages/Payment.tsx +++ b/src/pages/Payment.tsx @@ -1,6 +1,6 @@ import { useMemo, useState } from "react"; import { useLocation, useNavigate } from "react-router-dom"; -import { loadStripe } from "@stripe/stripe-js"; +import { loadStripe, type PaymentIntentResult } from "@stripe/stripe-js"; import { Elements, PaymentElement, @@ -24,7 +24,7 @@ function PaymentForm() { setLoading(true); setError(null); try { - const result: any = await stripe.confirmPayment({ + const result: PaymentIntentResult = await stripe.confirmPayment({ elements, confirmParams: { // You can change return_url to an order confirmation route