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

fix: Fix transition to thank you page without payment #67

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

chanbakjsd
Copy link
Member

This PR should address the issue of transitioning to thank you page by checking a special case for Stripe.
In addition, the order summary page now shows "Payment Pending" in case the user did get redirected for whatever reason.

[SCSE-196]

@linear
Copy link

linear bot commented Feb 18, 2023

SCSE-196 Fix transition to thank you page without payment

Thank you page is rendered after closing the payment QR code even without payment.

Frontend should validate that the order is not cancelled and not pending payment. If it is cancelled/pending payment, do not show the "Thank You" text.

@vercel
Copy link

vercel bot commented Feb 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
fe ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 23, 2023 at 0:05AM (UTC)

@chanbakjsd
Copy link
Member Author

chanbakjsd commented Feb 18, 2023

Copy link
Contributor

@YoNG-Zaii YoNG-Zaii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the Payment Pending page:

"We are currently pending confirmation for your payment from our payment processor. If you have paid, please check back later.

Should the issue persist, please contact us at merch@ntuscse.com with proof of payment. We apologize for the inconvenience."

I believe the line spacing between the two sentences can be smaller. The button 'continue spacing' can have more top margin.

In Stripe, some payment methods (in our case PayNow) may redirect back
to the `return_url` and the PaymentIntent will have a status of
`requires_payment_method`. In this case, we should attempt to recollect
payment from the user.

[SCSE-196]
@chanbakjsd
Copy link
Member Author

@YoNG-Zaii The issue pointed out has been fixed.

Copy link
Contributor

@YoNG-Zaii YoNG-Zaii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM in terms of payment pending page.

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.

2 participants