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(relay): Remove raw connector response population logic for unreferenced refunds (#12788)
Aniket Burman9c7252bc9b34
diff --git a/crates/router/src/core/relay.rs b/crates/router/src/core/relay.rsindex 489145647f..db2f24c394 100644--- a/crates/router/src/core/relay.rs+++ b/crates/router/src/core/relay.rs@@ -16,6 +16,7 @@ use hyperswitch_interfaces::{relay::{ConnectorRelayIntegration, UnreferencedRefundRouterData},};use hyperswitch_masking::Secret;+use router_env::tracing::{self, instrument};use super::errors::{self, ConnectorErrorExt, RouterResponse, RouterResult, StorageErrorExt};use crate::{@@ -994,6 +995,7 @@ pub async fn sync_relay_refund_with_gateway(Ok(relay_response)}+#[instrument(skip_all)]async fn process_unreferenced_refund(state: &SessionState,platform: &domain::Platform,@@ -1126,7 +1128,7 @@ async fn process_unreferenced_refund(status: relay_status,error_code: connector_resp.error_code,error_message: connector_resp.error_message,- response_data: connector_resp.raw_response,+ response_data: None,};(bytes, relay_update)}