From b6aac89fcb68948a16574c257ff0590bd23854c4 Mon Sep 17 00:00:00 2001 From: Sk Sakil Mostak Date: Wed, 27 Mar 2024 14:51:23 +0530 Subject: [PATCH] bugfix: amount remain same for processing status in capture --- crates/router/src/types.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/router/src/types.rs b/crates/router/src/types.rs index e0ab8131199..6f73efa832e 100644 --- a/crates/router/src/types.rs +++ b/crates/router/src/types.rs @@ -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