Skip to content

Commit

Permalink
feat: use connector_request_reference-id as referemce to connector
Browse files Browse the repository at this point in the history
  • Loading branch information
shakeel-3 committed Oct 15, 2023
1 parent f43ed3c commit 9f4f14c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/router/src/connector/opennode/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pub struct OpennodePaymentsRequest {
auto_settle: bool,
success_url: String,
callback_url: String,
order_id: String,
}

impl TryFrom<&types::PaymentsAuthorizeRouterData> for OpennodePaymentsRequest {
Expand Down Expand Up @@ -229,6 +230,8 @@ fn get_crypto_specific_payment_data(
let auto_settle = true;
let success_url = item.get_return_url()?;
let callback_url = item.request.get_webhook_url()?;
let order_id = item.get_connector_request_reference_id();


Ok(OpennodePaymentsRequest {
amount,
Expand All @@ -237,6 +240,7 @@ fn get_crypto_specific_payment_data(
auto_settle,
success_url,
callback_url,
order_id,
})
}

Expand Down

0 comments on commit 9f4f14c

Please sign in to comment.