mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +08:00
fix: use non force sync workflow when payment in terminal state (#254)
This commit is contained in:
@ -994,13 +994,16 @@ pub(crate) fn validate_amount_to_capture(
|
||||
)
|
||||
}
|
||||
|
||||
pub fn can_call_connector(status: storage_enums::IntentStatus) -> bool {
|
||||
matches!(
|
||||
pub fn can_call_connector(status: &storage_enums::AttemptStatus) -> bool {
|
||||
!matches!(
|
||||
status,
|
||||
storage_enums::IntentStatus::Failed
|
||||
| storage_enums::IntentStatus::Processing
|
||||
| storage_enums::IntentStatus::Succeeded
|
||||
| storage_enums::IntentStatus::RequiresCustomerAction
|
||||
storage_enums::AttemptStatus::Charged
|
||||
| storage_enums::AttemptStatus::AutoRefunded
|
||||
| storage_enums::AttemptStatus::Voided
|
||||
| storage_enums::AttemptStatus::CodInitiated
|
||||
| storage_enums::AttemptStatus::Authorized
|
||||
| storage_enums::AttemptStatus::Started
|
||||
| storage_enums::AttemptStatus::Failure
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user