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

Flash error "The payment could not be processed. The payment could not be completed" when customers provide payment authorization #7644

Closed
filipefurtad0 opened this issue May 14, 2021 · 6 comments · Fixed by #7645
Assignees
Labels
bug-s2 The bug is affecting any of the non-critical features described in S1 and there is no workaround.

Comments

@filipefurtad0
Copy link
Contributor

Description

Despite payment success, the customer sees a red flash error indicating that "The payment could not be processed. The payment could not be completed", after using the received link per email to payment provide authorization.

Refreshing the page displays:
"The payment could not be processed. Invalid payment state: succeeded"

Note that navigating to other pages displays the error as well - this is the "memory effect" bug #7600.

Expected Behavior

If the payment is successful the flash error should not be displayed.

Actual Behaviour

A successfully authorized payment (verified in Stripe) triggers a misleading flash error to the user.

Steps to Reproduce

As an admin:

  1. Create a BO order and add a Stripe SCA payment using the x-3184 card

As a customer:
2. Log in as the respective customer
3. Take the link received per email and paste it into the customers browser session
4. Click "Complete Authentication"
5. See the error "The payment could not be processed. The payment could not be completed."
6. Refresh the page.
7. See the error "The payment could not be processed. Invalid payment state: succeeded"

Animated Gif/Screenshot

Peek 2021-05-14 09-53

After refreshing the page, as a customer, the error changes to:

image

Workaround

Proposing:
bug-s2: a non-critical feature is broken, no workaround

Severity

Your Environment

  • Version used: v3.7.1
  • Browser name and version: Firefox 88
  • Operating System and version (desktop or mobile): Desktop Ubuntu 20.04

Possible Fix

Maybe related to #7614.

@filipefurtad0 filipefurtad0 added the bug-s2 The bug is affecting any of the non-critical features described in S1 and there is no workaround. label May 14, 2021
@filipefurtad0
Copy link
Contributor Author

I think this is a regression and maybe a release blocker. It does not occur in staging-AU which currently has this commit 8672969 staged in it.

Peek 2021-05-14 10-19

@filipefurtad0 filipefurtad0 added the regression Tagging any identified regressions label May 14, 2021
@Matt-Yorkley
Copy link
Contributor

Matt-Yorkley commented May 14, 2021

I did a bit of hunting and found the relevant Bugsnag: https://app.bugsnag.com/open-food-france/coopcircuits/errors/604b10a984971c00080d5b95?filters[event.since][0][type]=eq&filters[event.since][0][value]=30d&filters[error.status][0][type]=eq&filters[error.status][0][value]=open&filters[search][0][type]=eq&filters[search][0][value]=succeeded

Wait... is that the right one? @filipefurtad0 can you remember which server did you encountered this on?

@Matt-Yorkley Matt-Yorkley self-assigned this May 14, 2021
@filipefurtad0
Copy link
Contributor Author

Yes, that seems right @Matt-Yorkley - it was in staging-FR and staging-UK. That bugsnag would match 👍

@Matt-Yorkley
Copy link
Contributor

Matt-Yorkley commented May 14, 2021

Are we 100% sure this wasn't already in the last release? 😬

@Matt-Yorkley Matt-Yorkley added the pr-staged-uk staging.openfoodnetwork.org.uk label May 14, 2021
@filipefurtad0
Copy link
Contributor Author

filipefurtad0 commented May 14, 2021

I'm not 100% sure... I double checked staging-AU which (according to Semaphore) has 8672969 and it's not occurring there.

I just had a crash-course with @sauloperez on Ansiable and deploying previous releases to staging servers, but I have not tried these superpowers just yet 😄

@Matt-Yorkley
Copy link
Contributor

So... we just confirmed that reverting #7562 fixes this issue. We'll need to take a look at it. It's already in production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-s2 The bug is affecting any of the non-critical features described in S1 and there is no workaround.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants