feat(router): [OpenNode] response reference id (#2416)

This commit is contained in:
Sarang S
2023-10-04 13:24:20 +05:30
committed by GitHub
parent 0d703c7ab8
commit 3bfea72df3

View File

@ -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 {