feat(connector): [Klarna] Add order id as the reference id to merchant (#2614)

This commit is contained in:
Joel Tony
2023-10-19 19:44:26 +05:30
committed by GitHub
parent a9b5dc9ab7
commit b7d557367a

View File

@ -159,12 +159,14 @@ impl TryFrom<types::PaymentsResponseRouterData<KlarnaPaymentsResponse>>
) -> Result<Self, Self::Error> { ) -> Result<Self, Self::Error> {
Ok(Self { Ok(Self {
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: Some(item.response.order_id.clone()),
}), }),
status: item.response.fraud_status.into(), status: item.response.fraud_status.into(),
..item.data ..item.data