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(refunds): include surcharge in explicit full refunds (#15249)
nithin-juspaybfc7d43fd2ad
diff --git a/crates/router/src/core/refunds/surcharge.rs b/crates/router/src/core/refunds/surcharge.rsindex 0d96439bc3..7095841b33 100644--- a/crates/router/src/core/refunds/surcharge.rs+++ b/crates/router/src/core/refunds/surcharge.rs@@ -110,8 +110,7 @@ impl SurchargeRefundBalances {previous_refunds.iter().all(|refund| refund.refund_status.is_failure())- && requested- .is_none_or(|amount| amount.get_amount_as_i64() == self.original_order_amount)+ && requested.is_none()}/// Create-flow check of the requested order amount against the remaining order balance. The