Skip to content

Commit

Permalink
feat(connector): [Dlocal] Implement feature to use connector_request_…
Browse files Browse the repository at this point in the history
…reference_id as reference to the connector (#2704)
  • Loading branch information
shakeel-3 authored Oct 27, 2023
1 parent 05c2f84 commit af90089
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/router/src/connector/dlocal/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ impl TryFrom<&DlocalRouterData<&types::PaymentsAuthorizeRouterData>> for DlocalP
.clone()
.map(|_| "1".to_string()),
}),
order_id: item.router_data.payment_id.clone(),
order_id: item.router_data.connector_request_reference_id.clone(),
three_dsecure: match item.router_data.auth_type {
diesel_models::enums::AuthenticationType::ThreeDs => {
Some(ThreeDSecureReqData { force: true })
Expand Down Expand Up @@ -237,7 +237,7 @@ impl TryFrom<&types::PaymentsCaptureRouterData> for DlocalPaymentsCaptureRequest
authorization_id: item.request.connector_transaction_id.clone(),
amount: item.request.amount_to_capture,
currency: item.request.currency.to_string(),
order_id: item.payment_id.clone(),
order_id: item.connector_request_reference_id.clone(),
})
}
}
Expand Down

0 comments on commit af90089

Please sign in to comment.