Skip to content

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

refactor(connector): [Cryptopay] add psync reference id validation for Cryptopay (#2668)

Prasunna Soppa27b97626245c
diff --git a/crates/router/src/connector/cryptopay.rs b/crates/router/src/connector/cryptopay.rs
index 7e1b334b36..8abe84a935 100644
--- a/crates/router/src/connector/cryptopay.rs
+++ b/crates/router/src/connector/cryptopay.rs
@@ -171,8 +171,6 @@ impl ConnectorCommon for Cryptopay {
}
}
-impl ConnectorValidation for Cryptopay {}
-
impl ConnectorIntegration<api::Session, types::PaymentsSessionData, types::PaymentsResponseData>
for Cryptopay
{
@@ -279,6 +277,16 @@ impl ConnectorIntegration<api::Authorize, types::PaymentsAuthorizeData, types::P
}
}
+impl ConnectorValidation for Cryptopay {
+ fn validate_psync_reference_id(
+ &self,
+ _data: &types::PaymentsSyncRouterData,
+ ) -> CustomResult<(), errors::ConnectorError> {
+ // since we can make psync call with our reference_id, having connector_transaction_id is not an mandatory criteria
+ Ok(())
+ }
+}
+
impl ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsResponseData>
for Cryptopay
{