refactor(connector): [Worldline] change error message from NotSupported to NotImplemented (#2893)

This commit is contained in:
Kaustubh Sharma
2023-11-23 00:59:56 +05:30
committed by GitHub
parent cb65370606
commit e721b06c70

View File

@ -306,10 +306,9 @@ impl TryFrom<utils::CardIssuer> for Gateway {
utils::CardIssuer::Master => Ok(Self::MasterCard),
utils::CardIssuer::Discover => Ok(Self::Discover),
utils::CardIssuer::Visa => Ok(Self::Visa),
_ => Err(errors::ConnectorError::NotSupported {
message: issuer.to_string(),
connector: "worldline",
}
_ => Err(errors::ConnectorError::NotImplemented(
utils::get_unimplemented_payment_method_error_message("worldline"),
)
.into()),
}
}