mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
fix(router): [nuvei] Nuvei error handling for payment declined status and included tests (#3832)
Co-authored-by: Arjun Karthik <m.arjunkarthik@gmail.com>
This commit is contained in:
@ -1367,7 +1367,7 @@ fn build_error_response<T>(
|
||||
http_code,
|
||||
));
|
||||
match response.transaction_status {
|
||||
Some(NuveiTransactionStatus::Error) => err,
|
||||
Some(NuveiTransactionStatus::Error) | Some(NuveiTransactionStatus::Declined) => err,
|
||||
_ => match response
|
||||
.gw_error_reason
|
||||
.as_ref()
|
||||
|
||||
Reference in New Issue
Block a user