Skip to content

Commit

Permalink
fix(core): Amount capturable remain same for processing status in c…
Browse files Browse the repository at this point in the history
…apture (juspay#4229)
  • Loading branch information
Sakilmostak committed Mar 27, 2024
1 parent 246898f commit 9523cf4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/router/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -723,9 +723,9 @@ impl Capturable for PaymentsCaptureData {
let intent_status = common_enums::IntentStatus::foreign_from(attempt_status);
match intent_status {
common_enums::IntentStatus::Succeeded
| common_enums::IntentStatus::PartiallyCaptured
| common_enums::IntentStatus::Processing => Some(0),
common_enums::IntentStatus::Cancelled
| common_enums::IntentStatus::PartiallyCaptured => Some(0),
common_enums::IntentStatus::Processing
| common_enums::IntentStatus::Cancelled
| common_enums::IntentStatus::Failed
| common_enums::IntentStatus::RequiresCustomerAction
| common_enums::IntentStatus::RequiresMerchantAction
Expand Down

0 comments on commit 9523cf4

Please sign in to comment.