hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

[BUG] Payment fails on PSync call in the redirection flow for Nuvei

Open pixincreate opened this issue 2 years ago • 0 comments

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.

  1. Do a transaction that asks for customer action, don't click on redirect URL
  2. Do a PSync call

Context For The Bug

image

"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:

  1. Operating System or Linux distribution:
  2. Rust version (output of rustc --version): ``
  3. 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?

Are you willing to submit a PR?

No, I don't have time to work on this right now

pixincreate avatar Aug 08 '23 08:08 pixincreate