mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
fix(router): allow payments update for requires_payment_method and requires_confirmation intent status only (#5616)
This commit is contained in:
committed by
GitHub
parent
66cc0a3b39
commit
805540a1d0
@ -95,13 +95,11 @@ impl<F: Send + Clone> GetTracker<F, PaymentData<F>, api::PaymentsRequest> for Pa
|
||||
.and_then(|pmd| pmd.payment_method_data.clone()),
|
||||
)?;
|
||||
|
||||
helpers::validate_payment_status_against_not_allowed_statuses(
|
||||
helpers::validate_payment_status_against_allowed_statuses(
|
||||
&payment_intent.status,
|
||||
&[
|
||||
storage_enums::IntentStatus::Failed,
|
||||
storage_enums::IntentStatus::Succeeded,
|
||||
storage_enums::IntentStatus::PartiallyCaptured,
|
||||
storage_enums::IntentStatus::RequiresCapture,
|
||||
storage_enums::IntentStatus::RequiresPaymentMethod,
|
||||
storage_enums::IntentStatus::RequiresConfirmation,
|
||||
],
|
||||
"update",
|
||||
)?;
|
||||
|
||||
Reference in New Issue
Block a user