Skip to content

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

fix(connector): [CASHTOCODE] Fix Error Response Handling (#2926)

DEEPANSHU BANSAL938b63a1fceb
diff --git a/crates/router/src/connector/cashtocode/transformers.rs b/crates/router/src/connector/cashtocode/transformers.rs
index 2caef69db9..42e47c077e 100644
--- a/crates/router/src/connector/cashtocode/transformers.rs
+++ b/crates/router/src/connector/cashtocode/transformers.rs
@@ -289,7 +289,7 @@ impl<F, T>
#[derive(Debug, Deserialize)]
pub struct CashtocodeErrorResponse {
- pub error: String,
+ pub error: serde_json::Value,
pub error_description: String,
pub errors: Option<Vec<CashtocodeErrors>>,
}