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): added default case for Opayo (#2687)
Hangsaai1186f8c4e2f0
diff --git a/crates/router/src/connector/opayo/transformers.rs b/crates/router/src/connector/opayo/transformers.rsindex d828232dbc..41bcc1500e 100644--- a/crates/router/src/connector/opayo/transformers.rs+++ b/crates/router/src/connector/opayo/transformers.rs@@ -2,7 +2,7 @@ use masking::Secret;use serde::{Deserialize, Serialize};use crate::{- connector::utils::PaymentsAuthorizeRequestData,+ connector::utils::{self, PaymentsAuthorizeRequestData},core::errors,types::{self, api, storage::enums},};@@ -41,7 +41,21 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for OpayoPaymentsRequest {card,})}- _ => 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("Opayo"),+ )+ .into()),}}}