hyperswitch
hyperswitch copied to clipboard
[BUG] Payment fails on PSync call in the redirection flow for Nuvei
Bug Description
It bugs out when you try to do a payment in redirection flow. You directly do a PSync call even before the redirect URL is clicked, the payment fails.
Expected Behavior
It should not fail but rather tell you that the customer action is required.
Actual Behavior
It fails
Steps To Reproduce
Provide an unambiguous set of steps to reproduce this bug. Include code or configuration to reproduce, if relevant.
- Do a transaction that asks for customer action, don't click on redirect URL
- Do a PSync call
Context For The Bug
"ErrorUpdate { connector: None, status: Failure, error_code: Some(Some(\"1140\")), error_message: Some(Some(\"A payment was not performed during this session\")), error_reason: Some(None) }","http.host":"integ-api.hyperswitch.io","otel.kind":"server","path":"Path(\"pay_m1RCtuvmH6mLQZxXMd0Y\")
Environment
Are you using hyperswitch hosted version? Yes
x-request-id: 235e0299-6173-4932-b09e-671d897791fb
If not (or if building/running locally), please provide the following details:
- Operating System or Linux distribution:
- Rust version (output of
rustc --version): `` - App version (output of
cargo r --features vergen -- --version): ``
Have you spent some time to check if this bug has been raised before?
- [X] I checked and didn't find similar issue
Have you read the Contributing Guidelines?
- [X] I have read the Contributing Guidelines
Are you willing to submit a PR?
No, I don't have time to work on this right now