diff --git a/crates/router/src/connector/payu/transformers.rs b/crates/router/src/connector/payu/transformers.rs index c43e59ac76c2..9a2e14215c75 100644 --- a/crates/router/src/connector/payu/transformers.rs +++ b/crates/router/src/connector/payu/transformers.rs @@ -194,12 +194,17 @@ impl Ok(Self { status: enums::AttemptStatus::from(item.response.status.status_code), 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, mandate_reference: None, connector_metadata: 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, ..item.data @@ -326,12 +331,17 @@ impl Ok(Self { status: enums::AttemptStatus::from(item.response.status.status_code.clone()), 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, mandate_reference: None, connector_metadata: 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, ..item.data @@ -461,7 +471,10 @@ impl mandate_reference: None, connector_metadata: 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( order