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

Going back from 3DS2 page leads to an CONFIRM form resubmission #184

Closed
gochev opened this issue Jun 1, 2020 · 4 comments
Closed

Going back from 3DS2 page leads to an CONFIRM form resubmission #184

gochev opened this issue Jun 1, 2020 · 4 comments
Assignees

Comments

@gochev
Copy link

gochev commented Jun 1, 2020

Describe the bug
The bug is related to #183 but for 3DS2. Please resolve this ones #183 is done otherwise you will hit #183

User should be able to go back from the 3DS2 or 3DS page and select different payment method. Ones the #183 is fixed for 3DS then we have a new issue for 3DS2 related to the fact that the adyen plugin is doing POST.

To Reproduce
Steps to reproduce the behavior:

  1. Start checkout with GUEST user and select a Card Payment
  2. Fill the details with a 3DS2 card
  3. Make browser back
  4. See the screenshot.

Expected behavior
To see the previous page displayed normally with an option to select a different payment method or card details.

Screenshots
Screen Shot 2020-06-01 at 11 10 58

Additional context
The bug is not related to browser or OS. Plugin version 6.4.0 Hybris 6.6

P.S. the bug happens because you are doing POST before the redirect to the 3DS2 page. So when the user hits BACK he is on the POST request.

@rkewlani
Copy link
Contributor

rkewlani commented Jun 2, 2020

Hi @gochev,
Thanks for writing to us. We will look into it and let you know.
Regards,
Rajni

@rkewlani
Copy link
Contributor

Hi @gochev,
We have created internal ticket for fixing this issues. We will keep you posted.
Regards,
Adyen

@rkewlani
Copy link
Contributor

We tried to reproduce this issue and could not do it by given steps. We are not getting this error on immediate "back" button. If you press back button, you will go to /cart page.
If you go back and forth from summary or cart to 3ds challenge page then you will get this error. It is not recommended to do that. Back and forward actions also clear payments data for security reasons. However user should be able to recover the cart and you have already raised it in other issue so we are closing this issue here.

@gochev
Copy link
Author

gochev commented Sep 22, 2020

Hello @rkewlani there is a pattern called POST REDIRECT GET basically each time you do post.. you should always redirect and land the customer on GET request so the customer should never see a browser in a POST request, so the customer should never see "CONFIRM Form resubmission", however it looks the POST, REDIRECT, GET pattern that exists since well the beginning of server side webpages is not something Adyen is considering a good practice :)

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

No branches or pull requests

2 participants