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
feat: card_redirect_ucs (#10924)
sayakBasakJuspayff301f35e319
diff --git a/crates/router/src/core/unified_connector_service.rs b/crates/router/src/core/unified_connector_service.rsindex 84190c5ab6..df110edd5b 100644--- a/crates/router/src/core/unified_connector_service.rs+++ b/crates/router/src/core/unified_connector_service.rs@@ -653,6 +653,30 @@ pub fn build_unified_connector_service_payment_method(payment_method: Some(PaymentMethod::Card(card_details)),})}+ hyperswitch_domain_models::payment_method_data::PaymentMethodData::CardRedirect(+ card_redirect_data,+ ) => {+ let card_redirect_type = match card_redirect_data {+ hyperswitch_domain_models::payment_method_data::CardRedirectData::Knet {} => {+ payments_grpc::card_redirect::CardRedirectType::Knet+ }+ hyperswitch_domain_models::payment_method_data::CardRedirectData::Benefit {} => {+ payments_grpc::card_redirect::CardRedirectType::Benefit+ }+ hyperswitch_domain_models::payment_method_data::CardRedirectData::MomoAtm {} => {+ payments_grpc::card_redirect::CardRedirectType::MomoAtm+ }+ hyperswitch_domain_models::payment_method_data::CardRedirectData::CardRedirect {} => {+ payments_grpc::card_redirect::CardRedirectType::CardRedirect+ }+ };++ Ok(payments_grpc::PaymentMethod {+ payment_method: Some(PaymentMethod::CardRedirect(payments_grpc::CardRedirect {+ r#type: card_redirect_type.into(),+ })),+ })+ }hyperswitch_domain_models::payment_method_data::PaymentMethodData::Upi(upi_data) => {let upi_type = match upi_data {hyperswitch_domain_models::payment_method_data::UpiData::UpiCollect(