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(router): tsys default case handling (#2672)
Kumar Harshwardhan9ff272121a4b
diff --git a/crates/router/src/connector/tsys/transformers.rs b/crates/router/src/connector/tsys/transformers.rsindex 83134568c0..a3bd1c4a07 100644--- a/crates/router/src/connector/tsys/transformers.rs+++ b/crates/router/src/connector/tsys/transformers.rs@@ -3,7 +3,7 @@ use masking::Secret;use serde::{Deserialize, Serialize};use crate::{- connector::utils::{CardData, PaymentsAuthorizeRequestData, RefundsRequestData},+ connector::utils::{self, CardData, PaymentsAuthorizeRequestData, RefundsRequestData},core::errors,types::{self, api,@@ -66,7 +66,20 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for TsysPaymentsRequest {Ok(Self::Auth(auth_data))}}- _ => Err(errors::ConnectorError::NotImplemented("Payment methods".to_string()).into()),+ api::PaymentMethodData::CardRedirect(_)+ | api::PaymentMethodData::Wallet(_)+ | api::PaymentMethodData::PayLater(_)+ | api::PaymentMethodData::BankRedirect(_)+ | api::PaymentMethodData::BankDebit(_)+ | api::PaymentMethodData::BankTransfer(_)+ | api::PaymentMethodData::Crypto(_)+ | api::PaymentMethodData::MandatePayment+ | api::PaymentMethodData::Reward+ | api::PaymentMethodData::Upi(_)+ | api::PaymentMethodData::Voucher(_)+ | api::PaymentMethodData::GiftCard(_) => Err(errors::ConnectorError::NotImplemented(+ utils::get_unimplemented_payment_method_error_message("tsys"),+ ))?,}}}