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
fix(mca): Change the check for `disabled` field in mca create and update (#2938)
Mani Chandrae66ccde4cf6d
diff --git a/crates/router/src/core/admin.rs b/crates/router/src/core/admin.rsindex 3a0c938c32..107e8f8859 100644--- a/crates/router/src/core/admin.rs+++ b/crates/router/src/core/admin.rs@@ -1767,7 +1767,7 @@ pub fn validate_status_and_disabled(};let disabled = match (disabled, connector_status) {- (Some(true), common_enums::ConnectorStatus::Inactive) => {+ (Some(false), common_enums::ConnectorStatus::Inactive) => {return Err(errors::ApiErrorResponse::InvalidRequestData {message: "Connector cannot be enabled when connector_status is inactive or when using TemporaryAuth".to_string(),