From 591c9b70d9b7f8df5d7f5d2cb2d19cfaa1457fe1 Mon Sep 17 00:00:00 2001 From: Vedant Khairnar Date: Wed, 4 Oct 2023 18:34:56 +0530 Subject: [PATCH] feat(connector): [Square] Use reference_id as reference to merchant (#2434) Co-authored-by: Vedant Khairnar --- crates/router/src/connector/square/transformers.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/router/src/connector/square/transformers.rs b/crates/router/src/connector/square/transformers.rs index ff33914c4fd5..01ed507bf34a 100644 --- a/crates/router/src/connector/square/transformers.rs +++ b/crates/router/src/connector/square/transformers.rs @@ -327,6 +327,7 @@ pub struct SquarePaymentsResponseDetails { status: SquarePaymentStatus, id: String, amount_money: SquarePaymentsAmountData, + reference_id: Option, } #[derive(Debug, Deserialize)] pub struct SquarePaymentsResponse { @@ -355,7 +356,7 @@ impl mandate_reference: None, connector_metadata: None, network_txn_id: None, - connector_response_reference_id: None, + connector_response_reference_id: item.response.payment.reference_id, }), amount_captured, ..item.data