Skip to content

Commit

Permalink
refactor(connector): [Cryptopay] Update PSync with connector_request_…
Browse files Browse the repository at this point in the history
…reference_id (#2388)
  • Loading branch information
prasunna09 authored Oct 3, 2023
1 parent 5048d24 commit 3680541
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions crates/router/src/connector/cryptopay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,16 +295,10 @@ impl ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsRe
req: &types::PaymentsSyncRouterData,
connectors: &settings::Connectors,
) -> CustomResult<String, errors::ConnectorError> {
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)
))
}

Expand Down

0 comments on commit 3680541

Please sign in to comment.