bugfix(adyen): adyen psync fail fix (#691)

This commit is contained in:
Narayan Bhat
2023-02-28 19:01:02 +05:30
committed by GitHub
parent 9606b12c8b
commit 2e99152d35

View File

@ -243,6 +243,8 @@ async fn get_tracker_for_sync<
) )
})?; })?;
let contains_encoded_data = connector_response.encoded_data.is_some();
Ok(( Ok((
Box::new(operation), Box::new(operation),
PaymentData { PaymentData {
@ -263,10 +265,10 @@ async fn get_tracker_for_sync<
payment_method_data: None, payment_method_data: None,
force_sync: Some( force_sync: Some(
request.force_sync request.force_sync
&& helpers::check_force_psync_precondition( && (helpers::check_force_psync_precondition(
&payment_attempt.status, &payment_attempt.status,
&payment_attempt.connector_transaction_id, &payment_attempt.connector_transaction_id,
), ) || contains_encoded_data),
), ),
payment_attempt, payment_attempt,
refunds, refunds,