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