Skip to content

Commit 27b9762

Browse files
authored
refactor(connector): [Cryptopay] add psync reference id validation for Cryptopay (#2668)
1 parent 65319fe commit 27b9762

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

crates/router/src/connector/cryptopay.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ impl ConnectorCommon for Cryptopay {
171171
}
172172
}
173173

174-
impl ConnectorValidation for Cryptopay {}
175-
176174
impl ConnectorIntegration<api::Session, types::PaymentsSessionData, types::PaymentsResponseData>
177175
for Cryptopay
178176
{
@@ -279,6 +277,16 @@ impl ConnectorIntegration<api::Authorize, types::PaymentsAuthorizeData, types::P
279277
}
280278
}
281279

280+
impl ConnectorValidation for Cryptopay {
281+
fn validate_psync_reference_id(
282+
&self,
283+
_data: &types::PaymentsSyncRouterData,
284+
) -> CustomResult<(), errors::ConnectorError> {
285+
// since we can make psync call with our reference_id, having connector_transaction_id is not an mandatory criteria
286+
Ok(())
287+
}
288+
}
289+
282290
impl ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsResponseData>
283291
for Cryptopay
284292
{

0 commit comments

Comments
 (0)