Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

refactor(connector): [Nuvei] update error message (#2867)

HeetVekariya04b7c0384dc9
diff --git a/crates/router/src/connector/nuvei/transformers.rs b/crates/router/src/connector/nuvei/transformers.rs
index 25562f54bf..b79b2c8926 100644
--- a/crates/router/src/connector/nuvei/transformers.rs
+++ b/crates/router/src/connector/nuvei/transformers.rs
@@ -623,11 +623,9 @@ impl TryFrom<api_models::enums::BankNames> for NuveiBIC {
| api_models::enums::BankNames::TsbBank
| api_models::enums::BankNames::TescoBank
| api_models::enums::BankNames::UlsterBank => {
- Err(errors::ConnectorError::NotSupported {
- message: bank.to_string(),
- connector: "Nuvei",
- }
- .into())
+ Err(errors::ConnectorError::NotImplemented(
+ utils::get_unimplemented_payment_method_error_message("Nuvei"),
+ ))?
}
}
}
@@ -693,10 +691,9 @@ impl<F>
bank_name.map(NuveiBIC::try_from).transpose()?,
)
}
- _ => Err(errors::ConnectorError::NotSupported {
- message: "Bank Redirect".to_string(),
- connector: "Nuvei",
- })?,
+ _ => Err(errors::ConnectorError::NotImplemented(
+ utils::get_unimplemented_payment_method_error_message("Nuvei"),
+ ))?,
};
Ok(Self {
payment_option: PaymentOption {