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): Fixed status mapping for Plaid (#5525)
Sarthak Soni4364630d6ffb
diff --git a/crates/router/src/connector/plaid/transformers.rs b/crates/router/src/connector/plaid/transformers.rsindex 545ea271c4..cf9c91afd0 100644--- a/crates/router/src/connector/plaid/transformers.rs+++ b/crates/router/src/connector/plaid/transformers.rs@@ -233,16 +233,16 @@ impl From<PlaidPaymentStatus> for enums::AttemptStatus {fn from(item: PlaidPaymentStatus) -> Self {match item {PlaidPaymentStatus::PaymentStatusAuthorising => Self::Authorizing,- PlaidPaymentStatus::PaymentStatusBlocked => Self::AuthorizationFailed,+ PlaidPaymentStatus::PaymentStatusBlocked+ | PlaidPaymentStatus::PaymentStatusInsufficientFunds+ | PlaidPaymentStatus::PaymentStatusRejected => Self::AuthorizationFailed,PlaidPaymentStatus::PaymentStatusCancelled => Self::Voided,PlaidPaymentStatus::PaymentStatusEstablished => Self::Authorized,- PlaidPaymentStatus::PaymentStatusExecuted => Self::Authorized,+ PlaidPaymentStatus::PaymentStatusExecuted+ | PlaidPaymentStatus::PaymentStatusSettled+ | PlaidPaymentStatus::PaymentStatusInitiated => Self::Charged,PlaidPaymentStatus::PaymentStatusFailed => Self::Failure,- PlaidPaymentStatus::PaymentStatusInitiated => Self::AuthenticationPending,PlaidPaymentStatus::PaymentStatusInputNeeded => Self::AuthenticationPending,- PlaidPaymentStatus::PaymentStatusInsufficientFunds => Self::AuthorizationFailed,- PlaidPaymentStatus::PaymentStatusRejected => Self::AuthorizationFailed,- PlaidPaymentStatus::PaymentStatusSettled => Self::Charged,}}}