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) )) }