From 36805411772da00719a716d05c650f10ca990d49 Mon Sep 17 00:00:00 2001 From: Prasunna Soppa <70575890+prasunna09@users.noreply.github.com> Date: Tue, 3 Oct 2023 18:00:21 +0530 Subject: [PATCH] refactor(connector): [Cryptopay] Update PSync with connector_request_reference_id (#2388) --- crates/router/src/connector/cryptopay.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/crates/router/src/connector/cryptopay.rs b/crates/router/src/connector/cryptopay.rs index fd324fcc68b8..2387a9bf4019 100644 --- a/crates/router/src/connector/cryptopay.rs +++ b/crates/router/src/connector/cryptopay.rs @@ -295,16 +295,10 @@ impl ConnectorIntegration CustomResult { - let connector_id = req - .request - .connector_transaction_id - .get_connector_transaction_id() - .change_context(errors::ConnectorError::MissingConnectorTransactionID)?; - + let custom_id = req.connector_request_reference_id.clone(); Ok(format!( - "{}/api/invoices/{}", - self.base_url(connectors), - connector_id + "{}/api/invoices/custom_id/{custom_id}", + self.base_url(connectors) )) }