Skip to content

Commit

Permalink
refactor(connector): [Nuvei] update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
HeetVekariya committed Nov 13, 2023
1 parent f88eee7 commit 4c2e842
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions crates/router/src/connector/nuvei/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
))?
}
}
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 4c2e842

Please sign in to comment.