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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
refactor(connector): [Forte] change error message from not supported to not implemented (#2847)
oscar2d23fc0e2d81959
diff --git a/crates/router/src/connector/forte/transformers.rs b/crates/router/src/connector/forte/transformers.rsindex 411457fab6..ca7a66a9ff 100644--- a/crates/router/src/connector/forte/transformers.rs+++ b/crates/router/src/connector/forte/transformers.rs@@ -54,10 +54,9 @@ impl TryFrom<utils::CardIssuer> for ForteCardType {utils::CardIssuer::Visa => Ok(Self::Visa),utils::CardIssuer::DinersClub => Ok(Self::DinersClub),utils::CardIssuer::JCB => Ok(Self::Jcb),- _ => Err(errors::ConnectorError::NotSupported {- message: issuer.to_string(),- connector: "Forte",- }+ _ => Err(errors::ConnectorError::NotImplemented(+ utils::get_unimplemented_payment_method_error_message("Forte"),+ ).into()),}}@@ -67,10 +66,9 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for FortePaymentsRequest {type Error = error_stack::Report<errors::ConnectorError>;fn try_from(item: &types::PaymentsAuthorizeRouterData) -> Result<Self, Self::Error> {if item.request.currency != enums::Currency::USD {- Err(errors::ConnectorError::NotSupported {- message: item.request.currency.to_string(),- connector: "Forte",- })?+ Err(errors::ConnectorError::NotImplemented(+ utils::get_unimplemented_payment_method_error_message("Forte"),+ ))?}match item.request.payment_method_data {api_models::payments::PaymentMethodData::Card(ref ccard) => {@@ -117,10 +115,9 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for FortePaymentsRequest {| api_models::payments::PaymentMethodData::Voucher(_)| api_models::payments::PaymentMethodData::GiftCard(_)| api_models::payments::PaymentMethodData::CardToken(_) => {- Err(errors::ConnectorError::NotSupported {- message: utils::SELECTED_PAYMENT_METHOD.to_string(),- connector: "Forte",- })?+ Err(errors::ConnectorError::NotImplemented(+ utils::get_unimplemented_payment_method_error_message("Forte"),+ ))?}}}