mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
feat(connector): [PayU] Use connector_response_response_id as reference to merchant (#2452)
Co-authored-by: chikke srujan <121822803+srujanchikke@users.noreply.github.com>
This commit is contained in:
@ -194,12 +194,17 @@ impl<F, T>
|
|||||||
Ok(Self {
|
Ok(Self {
|
||||||
status: enums::AttemptStatus::from(item.response.status.status_code),
|
status: enums::AttemptStatus::from(item.response.status.status_code),
|
||||||
response: Ok(types::PaymentsResponseData::TransactionResponse {
|
response: Ok(types::PaymentsResponseData::TransactionResponse {
|
||||||
resource_id: types::ResponseId::ConnectorTransactionId(item.response.order_id),
|
resource_id: types::ResponseId::ConnectorTransactionId(
|
||||||
|
item.response.order_id.clone(),
|
||||||
|
),
|
||||||
redirection_data: None,
|
redirection_data: None,
|
||||||
mandate_reference: None,
|
mandate_reference: None,
|
||||||
connector_metadata: None,
|
connector_metadata: None,
|
||||||
network_txn_id: None,
|
network_txn_id: None,
|
||||||
connector_response_reference_id: None,
|
connector_response_reference_id: item
|
||||||
|
.response
|
||||||
|
.ext_order_id
|
||||||
|
.or(Some(item.response.order_id)),
|
||||||
}),
|
}),
|
||||||
amount_captured: None,
|
amount_captured: None,
|
||||||
..item.data
|
..item.data
|
||||||
@ -326,12 +331,17 @@ impl<F, T>
|
|||||||
Ok(Self {
|
Ok(Self {
|
||||||
status: enums::AttemptStatus::from(item.response.status.status_code.clone()),
|
status: enums::AttemptStatus::from(item.response.status.status_code.clone()),
|
||||||
response: Ok(types::PaymentsResponseData::TransactionResponse {
|
response: Ok(types::PaymentsResponseData::TransactionResponse {
|
||||||
resource_id: types::ResponseId::ConnectorTransactionId(item.response.order_id),
|
resource_id: types::ResponseId::ConnectorTransactionId(
|
||||||
|
item.response.order_id.clone(),
|
||||||
|
),
|
||||||
redirection_data: None,
|
redirection_data: None,
|
||||||
mandate_reference: None,
|
mandate_reference: None,
|
||||||
connector_metadata: None,
|
connector_metadata: None,
|
||||||
network_txn_id: None,
|
network_txn_id: None,
|
||||||
connector_response_reference_id: None,
|
connector_response_reference_id: item
|
||||||
|
.response
|
||||||
|
.ext_order_id
|
||||||
|
.or(Some(item.response.order_id)),
|
||||||
}),
|
}),
|
||||||
amount_captured: None,
|
amount_captured: None,
|
||||||
..item.data
|
..item.data
|
||||||
@ -461,7 +471,10 @@ impl<F, T>
|
|||||||
mandate_reference: None,
|
mandate_reference: None,
|
||||||
connector_metadata: None,
|
connector_metadata: None,
|
||||||
network_txn_id: None,
|
network_txn_id: None,
|
||||||
connector_response_reference_id: None,
|
connector_response_reference_id: order
|
||||||
|
.ext_order_id
|
||||||
|
.clone()
|
||||||
|
.or(Some(order.order_id.clone())),
|
||||||
}),
|
}),
|
||||||
amount_captured: Some(
|
amount_captured: Some(
|
||||||
order
|
order
|
||||||
|
|||||||
Reference in New Issue
Block a user