Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💡[FEATURE]: Add a Payment Page #234

Open
siddheshhr opened this issue May 31, 2024 · 2 comments
Open

💡[FEATURE]: Add a Payment Page #234

siddheshhr opened this issue May 31, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@siddheshhr
Copy link
Contributor

siddheshhr commented May 31, 2024

Title: Implement Checkout with Mock Payment Flow (Payment.jsx & Success.jsx)

  • Description:

Currently, clicking the checkout and payment details is all in on one page instead of this in the cart adding a button to which onclicking will redirect to payment gateway page. This issue proposes the creation of a checkout flow using React components:
Payment.jsx: This component will serve as a form for users to enter mock (invalid) payment card details for demonstration purposes. It should include fields for:
currently:
image

  • Cardholder Name
  • Card Number (16 digits, non-functional validation)
  • Expiration Date (MM/YY format, non-functional validation)
  • CVV (3-digit code, non-functional validation)
  • Billing Address (optional)

Success.jsx: Upon submitting the form in Payment.jsx, this component will display a success message indicating a successful order placement (even though the payment details are mock).

  • Mock Payment Flow:
  1. Clicking "Proceed to Checkout" redirects the user to Payment.jsx.
  2. The user enters mock card details in the form.
  3. Submitting the form triggers navigation to Success.jsx, displaying the "Thank you, your order has been placed!" message.

Alternatives Considered:

Integrating a real payment gateway: This is not feasible for a mock flow but could be an option for future development.
Implementing basic form validation: While not necessary for this demo, it could improve user experience.

I have started working on this please assign me this issue

@siddheshhr siddheshhr added the enhancement New feature or request label May 31, 2024
Copy link

Congratulations, @siddheshhr! 🎉 Thank you for creating your issue. Your contribution is greatly appreciated and we look forward to working with you to resolve the issue. Keep up the great work!

We will promptly review your changes and offer feedback. Keep up the excellent work! Kindly remember to check our contributing guidelines

@siddheshhr
Copy link
Contributor Author

siddheshhr commented May 31, 2024

GSSOC:I have started working on this please assign me this issue

@siddheshhr siddheshhr changed the title 💡[FEATURE]: Add to a Checkout Page 💡[FEATURE]: Add to a Payment Page May 31, 2024
@siddheshhr siddheshhr changed the title 💡[FEATURE]: Add to a Payment Page 💡[FEATURE]: Add a Payment Page Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant