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(connector): remove new line from error_message (#10786)
Sakil Mostak66345f2238b3
diff --git a/crates/hyperswitch_connectors/src/connectors/adyenplatform.rs b/crates/hyperswitch_connectors/src/connectors/adyenplatform.rsindex 18f67d5272..e1a932db6b 100644--- a/crates/hyperswitch_connectors/src/connectors/adyenplatform.rs+++ b/crates/hyperswitch_connectors/src/connectors/adyenplatform.rs@@ -117,14 +117,13 @@ impl ConnectorCommon for Adyenplatform {let message = if let Some(invalid_fields) = &response.invalid_fields {match serde_json::to_string(invalid_fields) {- Ok(invalid_fields_json) => format!(- "{}\nInvalid fields: {}",- response.title, invalid_fields_json- ),+ Ok(invalid_fields_json) => {+ format!("{} Invalid fields: {}", response.title, invalid_fields_json)+ }Err(_) => response.title.clone(),}} else if let Some(detail) = &response.detail {- format!("{}\nDetail: {}", response.title, detail)+ format!("{} Detail: {}", response.title, detail)} else {response.title.clone()};