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

[Bug] English version is not preserved on redirection from Stripe after successful donation and error is shown when try to switch back to EN #1248

Closed
DanielTakev opened this issue Dec 12, 2022 · 0 comments · Fixed by #1250
Assignees
Labels
template: bug type: bug Something isn't working

Comments

@DanielTakev
Copy link
Contributor

Which area(s) of Podkrepi.bg are affected? (leave empty if unsure)

Donations

Describe the Bug

This bug has two sides which are probably connected. I'm not sure, so I'm logging it as one issue.

  1. When we start donating from EN version, fill in all the data in Stripe checkout page and make a successful payment, then we are redirected to the Donation page, but the language version is not preserved, we're redirected to the BG version.
  2. At that moment, if we try to change the version to EN in the Donation page -> Step Payment, then we get an error: Unfortunately there was a problem! and the following warnings into the browser console:
  • Fetching session returned null.
  • XHR without token!!!
    (Screenshot attached externally)
    NOTE: This is reproduced during testing. It is not tried on production with a real donation.

To Reproduce

  1. Make a donation while using the EN version
  2. Fill all fields in Stripe checkout page and pay successfully
  3. Check the redirection after the donation

Actual result: The user is redirected to the BG version instead of the EN version. The user gets an error Unfortunately there was a problem! when trying to switch back to EN version.

Expected Behavior

The language version is preserved after the payment. The user should not see any errors.

Which browser are you using? (if relevant)

Chrome 108.0.5359.99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
template: bug type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants