Skip to content

feat: integrate Stripe payment processing and add order summary compo…#31

Merged
dpiyumal2319 merged 1 commit intomainfrom
payment
Oct 10, 2025
Merged

feat: integrate Stripe payment processing and add order summary compo…#31
dpiyumal2319 merged 1 commit intomainfrom
payment

Conversation

@dpiyumal2319
Copy link
Copy Markdown
Contributor

This pull request introduces Stripe payment integration into the order workflow, enabling users to complete payments directly within the app. The changes include new dependencies, environment configuration, and several new components for handling payment, order summary, and post-payment success flow. The most important changes are grouped below:

Payment Integration and Workflow

  • Added Stripe payment support by installing @stripe/react-stripe-js and @stripe/stripe-js dependencies in package.json and configuring the publishable key in .env. [1] [2]
  • Refactored src/app/(home-app)/orders/[orderId]/page.tsx to implement the Stripe payment flow: initializes payment intent, renders a payment form, handles loading and error states, and displays order summary. (src/app/(home-app)/orders/[orderId]/page.tsxL3-R181)
  • Created new CheckoutForm component (src/components/orders/CheckoutForm.tsx) to handle Stripe payment submission, success/error messaging, and redirection after payment.

Order Summary and Post-Payment Experience

  • Added OrderSummary component (src/components/orders/OrderSummary.tsx) to show order details, ticket list, price breakdown, and a countdown timer for seat lock expiration.
  • Implemented a new payment-success page (src/app/(home-app)/payment-success/page.tsx) to provide confirmation, order details, and auto-redirect after successful payment.

Minor Codebase Cleanups

@dpiyumal2319 dpiyumal2319 merged commit 81b31c1 into main Oct 10, 2025
1 check passed
@dpiyumal2319 dpiyumal2319 deleted the payment branch October 10, 2025 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant