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(connector): Use connector_response_reference_id for Shift4 (#2492)
Dmitriy Danilov83f0062aad98
diff --git a/crates/router/src/connector/shift4/transformers.rs b/crates/router/src/connector/shift4/transformers.rsindex 23c91e48d8..0dd3b85834 100644--- a/crates/router/src/connector/shift4/transformers.rs+++ b/crates/router/src/connector/shift4/transformers.rs@@ -717,6 +717,7 @@ impl<T, F>types::PaymentsResponseData,>,) -> Result<Self, Self::Error> {+ let connector_id = types::ResponseId::ConnectorTransactionId(item.response.id.clone());Ok(Self {status: enums::AttemptStatus::foreign_from((item.response.captured,@@ -727,7 +728,7 @@ impl<T, F>item.response.status,)),response: Ok(types::PaymentsResponseData::TransactionResponse {- resource_id: types::ResponseId::ConnectorTransactionId(item.response.id),+ resource_id: connector_id,redirection_data: item.response.flow@@ -737,7 +738,7 @@ impl<T, F>mandate_reference: None,connector_metadata: None,network_txn_id: None,- connector_response_reference_id: None,+ connector_response_reference_id: Some(item.response.id),}),..item.data})