Skip to content

Commit

Permalink
feat(connector): [Square] Use reference_id as reference to merchant (#…
Browse files Browse the repository at this point in the history
…2434)

Co-authored-by: Vedant Khairnar <[email protected]>
  • Loading branch information
VedantKhairnar and Vedant Khairnar authored Oct 4, 2023
1 parent 6e5ab0d commit 591c9b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/router/src/connector/square/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ pub struct SquarePaymentsResponseDetails {
status: SquarePaymentStatus,
id: String,
amount_money: SquarePaymentsAmountData,
reference_id: Option<String>,
}
#[derive(Debug, Deserialize)]
pub struct SquarePaymentsResponse {
Expand Down Expand Up @@ -355,7 +356,7 @@ impl<F, T>
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
Expand Down

0 comments on commit 591c9b7

Please sign in to comment.