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(connector): [Adyen] fix charged status for Auto capture payment (#1462)
Arjun Karthik6c818ef3366e
diff --git a/crates/router/src/connector/adyen/transformers.rs b/crates/router/src/connector/adyen/transformers.rsindex a724d87b30..aeeee648db 100644--- a/crates/router/src/connector/adyen/transformers.rs+++ b/crates/router/src/connector/adyen/transformers.rs@@ -154,8 +154,8 @@ impl ForeignFrom<(bool, AdyenStatus)> for storage_enums::AttemptStatus {AdyenStatus::AuthenticationNotRequired => Self::Pending,AdyenStatus::Authorised => match is_manual_capture {true => Self::Authorized,- // Final outcome of the payment can be confirmed only through webhooks- false => Self::Pending,+ // In case of Automatic capture Authorized is the final status of the payment+ false => Self::Charged,},AdyenStatus::Cancelled => Self::Voided,AdyenStatus::ChallengeShopper | AdyenStatus::RedirectShopper => {