-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
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. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This change can be validated in the preview deployment: https://fe-git-fix-scse-196-cse-it.vercel.app/order-summary/3fcd576f-2122-4fe1-9f4a-392441d1632f Payment completed: https://fe-git-fix-scse-196-cse-it.vercel.app/order-summary/f5879f91-021a-433e-ad7f-a03ed5c67125 |
cb07785
to
bbb67ac
Compare
bbb67ac
to
f282b19
Compare
There was a problem hiding this 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]
f282b19
to
9c821c7
Compare
@YoNG-Zaii The issue pointed out has been fixed. |
There was a problem hiding this 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.
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]