mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 05:17:02 +08:00
feat(router): [OpenNode] response reference id (#2416)
This commit is contained in:
@ -78,6 +78,7 @@ pub struct OpennodePaymentsResponseData {
|
|||||||
id: String,
|
id: String,
|
||||||
hosted_checkout_url: String,
|
hosted_checkout_url: String,
|
||||||
status: OpennodePaymentStatus,
|
status: OpennodePaymentStatus,
|
||||||
|
order_id: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: Fill the struct with respective fields
|
//TODO: Fill the struct with respective fields
|
||||||
@ -114,7 +115,7 @@ 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: item.response.data.order_id,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
Ok(types::PaymentsResponseData::TransactionUnresolvedResponse {
|
Ok(types::PaymentsResponseData::TransactionUnresolvedResponse {
|
||||||
@ -125,7 +126,7 @@ impl<F, T>
|
|||||||
"Please check the transaction in opennode dashboard and resolve manually"
|
"Please check the transaction in opennode dashboard and resolve manually"
|
||||||
.to_string(),
|
.to_string(),
|
||||||
}),
|
}),
|
||||||
connector_response_reference_id: None,
|
connector_response_reference_id: item.response.data.order_id,
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
|
|||||||
Reference in New Issue
Block a user