Skip to content

Commit af90089

Browse files
authored
feat(connector): [Dlocal] Implement feature to use connector_request_reference_id as reference to the connector (#2704)
1 parent 05c2f84 commit af90089

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/router/src/connector/dlocal/transformers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ impl TryFrom<&DlocalRouterData<&types::PaymentsAuthorizeRouterData>> for DlocalP
145145
.clone()
146146
.map(|_| "1".to_string()),
147147
}),
148-
order_id: item.router_data.payment_id.clone(),
148+
order_id: item.router_data.connector_request_reference_id.clone(),
149149
three_dsecure: match item.router_data.auth_type {
150150
diesel_models::enums::AuthenticationType::ThreeDs => {
151151
Some(ThreeDSecureReqData { force: true })
@@ -237,7 +237,7 @@ impl TryFrom<&types::PaymentsCaptureRouterData> for DlocalPaymentsCaptureRequest
237237
authorization_id: item.request.connector_transaction_id.clone(),
238238
amount: item.request.amount_to_capture,
239239
currency: item.request.currency.to_string(),
240-
order_id: item.payment_id.clone(),
240+
order_id: item.connector_request_reference_id.clone(),
241241
})
242242
}
243243
}

0 commit comments

Comments
 (0)