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(compatiblity): changed MCA decode 500 error to 422 (#1958)
Sahkal Poddar0d85c1f8bb3e
diff --git a/crates/router/src/core/payments/helpers.rs b/crates/router/src/core/payments/helpers.rsindex 118708ba1c..649e883058 100644--- a/crates/router/src/core/payments/helpers.rs+++ b/crates/router/src/core/payments/helpers.rs@@ -2401,7 +2401,8 @@ pub async fn get_merchant_connector_account(let decrypted_mca = services::decrypt_jwe(mca_config.config.as_str(), services::KeyIdCheck::SkipKeyIdCheck, private_key, jwe::RSA_OAEP_256).await- .change_context(errors::ApiErrorResponse::InternalServerError)+ .change_context(errors::ApiErrorResponse::UnprocessableEntity{+ entity: "merchant_connector_details".to_string()}).attach_printable("Failed to decrypt merchant_connector_details sent in request and then put in cache",)?;