Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(core): Amount capturable remain same for `processing` status in capture (#4229)
Sakil Mostak9523cf4bbac4
diff --git a/crates/router/src/types.rs b/crates/router/src/types.rsindex e0ab813119..6f73efa832 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