mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 19:42:27 +08:00
feat(connector): [Klarna] Add order id as the reference id to merchant (#2614)
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user