From f5927b8d08967e35259e62ade623c48f513999f4 Mon Sep 17 00:00:00 2001 From: kusowl Date: Tue, 24 Mar 2026 18:52:06 +0530 Subject: [PATCH] feature: implement payment method selector and checkout confirmation page --- backend/app/Services/Payment/StripePaymentGateway.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/Services/Payment/StripePaymentGateway.php b/backend/app/Services/Payment/StripePaymentGateway.php index 65fe097..a352a42 100644 --- a/backend/app/Services/Payment/StripePaymentGateway.php +++ b/backend/app/Services/Payment/StripePaymentGateway.php @@ -49,8 +49,8 @@ public function charge(Order $order): PaymentResponseDTO $data = new StripeSessionDataDTO( lineItems: $lineItems, mode: StripePaymentMode::Payment, - successUrl: config('app.frontend_url').'/order/payment/success?session_id={CHECKOUT_SESSION_ID}"', - cancelUrl: config('app.frontend_url').'/order/payment/cancel', + successUrl: config('app.frontend_url').'/checkout/confirmation?order_id='.$order->id.'&session_id={CHECKOUT_SESSION_ID}', + cancelUrl: config('app.frontend_url').'/checkout/payment?order_id='.$order->id, ); $session = Session::create($data->toArray());