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): [ACI] fix cancel and refund request encoder (#1507)

Sai Harsha Vardhancf72dcdbb6d2
diff --git a/crates/router/src/connector/aci.rs b/crates/router/src/connector/aci.rs
index 46e98d9663..c956a8e0ae 100644
--- a/crates/router/src/connector/aci.rs
+++ b/crates/router/src/connector/aci.rs
@@ -374,7 +374,7 @@ impl
let connector_req = aci::AciCancelRequest::try_from(req)?;
let aci_req = types::RequestBody::log_and_get_request_body(
&connector_req,
- utils::Encode::<aci::AciCancelRequest>::encode_to_string_of_json,
+ utils::Encode::<aci::AciCancelRequest>::url_encode,
)
.change_context(errors::ConnectorError::RequestEncodingFailed)?;
Ok(Some(aci_req))
@@ -483,7 +483,7 @@ impl services::ConnectorIntegration<api::Execute, types::RefundsData, types::Ref
let connector_req = aci::AciRefundRequest::try_from(req)?;
let body = types::RequestBody::log_and_get_request_body(
&connector_req,
- utils::Encode::<aci::AciRefundRequest>::encode_to_string_of_json,
+ utils::Encode::<aci::AciRefundRequest>::url_encode,
)
.change_context(errors::ConnectorError::RequestEncodingFailed)?;
Ok(Some(body))