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
feat(core): Fix connector_reference_id mapping from UCS response (#13490)
Shubhodip pal9ffc908ce03d
diff --git a/crates/router/src/core/unified_connector_service/transformers.rs b/crates/router/src/core/unified_connector_service/transformers.rsindex 884128a528..f1f3c8d7f6 100644--- a/crates/router/src/core/unified_connector_service/transformers.rs+++ b/crates/router/src/core/unified_connector_service/transformers.rs@@ -2880,7 +2880,7 @@ implstatus_code,attempt_status,connector_transaction_id: connector_transaction_id.get_optional_response_id(),- connector_response_reference_id: response.merchant_transaction_id.clone(),+ connector_response_reference_id: response.connector_reference_id.clone(),network_decline_code: error_info.issuer_details.as_ref().and_then(|id| {id.network_details.as_ref()@@ -2909,7 +2909,7 @@ implconnector_metadata,network_txn_id: response.network_transaction_id.clone(),network_txn_link_id: response.network_txn_link_id.clone(),- connector_response_reference_id: response.merchant_transaction_id.clone(),+ connector_response_reference_id: response.connector_reference_id.clone(),incremental_authorization_allowed: response.incremental_authorization_allowed,authentication_data: None,charges: response.splits.map(common_types::payments::ConnectorChargeResponseData::foreign_try_from).transpose()?,@@ -2988,7 +2988,7 @@ impl transformers::ForeignTryFrom<(payments_grpc::PaymentServiceCaptureResponse,status_code,attempt_status,connector_transaction_id: connector_transaction_id.get_optional_response_id(),- connector_response_reference_id: response.merchant_capture_id.clone(),+ connector_response_reference_id: response.connector_reference_id.clone(),network_decline_code: error_info.issuer_details.as_ref().and_then(|id| {id.network_details.as_ref()@@ -3016,7 +3016,7 @@ impl transformers::ForeignTryFrom<(payments_grpc::PaymentServiceCaptureResponse,connector_metadata,network_txn_id: None,network_txn_link_id: None,- connector_response_reference_id: response.merchant_capture_id.clone(),+ connector_response_reference_id: response.connector_reference_id.clone(),incremental_authorization_allowed: response.incremental_authorization_allowed,authentication_data: None,charges: response.splits.map(common_types::payments::ConnectorChargeResponseData::foreign_try_from).transpose()?,@@ -6798,7 +6798,7 @@ impl transformers::ForeignTryFrom<(payments_grpc::PaymentServiceVoidResponse, Atstatus_code,attempt_status,connector_transaction_id: connector_transaction_id.get_optional_response_id(),- connector_response_reference_id: response.merchant_void_id.clone(),+ connector_response_reference_id: response.connector_reference_id.clone(),network_decline_code: error_info.issuer_details.as_ref().and_then(|id| {id.network_details.as_ref()@@ -6827,7 +6827,7 @@ impl transformers::ForeignTryFrom<(payments_grpc::PaymentServiceVoidResponse, Atconnector_metadata,network_txn_id: None,network_txn_link_id: None,- connector_response_reference_id: response.merchant_void_id.clone(),+ connector_response_reference_id: response.connector_reference_id.clone(),incremental_authorization_allowed: response.incremental_authorization_allowed,authentication_data: None,charges: response.splits.map(common_types::payments::ConnectorChargeResponseData::foreign_try_from).transpose()?,