Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
refactor(connector): [Cryptopay] Update PSync with connector_request_reference_id (#2388)
Prasunna Soppa36805411772d
diff --git a/crates/router/src/connector/cryptopay.rs b/crates/router/src/connector/cryptopay.rsindex fd324fcc68..2387a9bf40 100644--- a/crates/router/src/connector/cryptopay.rs+++ b/crates/router/src/connector/cryptopay.rs@@ -295,16 +295,10 @@ impl ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsRereq: &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)))}