juspay / hyperswitch

An open source payments switch written in Rust to make payments fast, reliable and affordable
https://hyperswitch.io/
Apache License 2.0
11.02k stars 1.19k forks source link

[BUG] : Handle status mapping for cancel failed scenarios #5122

Open AkshayaFoiger opened 1 week ago

AkshayaFoiger commented 1 week ago

Bug Description

Currently, we are mapping the cancel failure to payment intent failure because of after cancel is failed we can't capture the payment.

Expected Behavior

Introduce a new status called cancel failed

Actual Behavior

Payment Intent is failed when cancel fails

Steps To Reproduce

Provide an unambiguous set of steps to reproduce this bug. Include code or configuration to reproduce, if relevant.

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'

Context For The Bug

No response

Environment

Are you using hyperswitch hosted version? Yes/No If yes, please provide the value of the x-request-id response header to help us debug your issue.

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 checking if this bug has been raised before?

Have you read the Contributing Guidelines?

Are you willing to submit a PR?

None