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
refactor(connector): [Worldpay] Remove Default Case Handling (#2488)
Sudharsan GS2b2c38146dc6
diff --git a/crates/router/src/connector/worldpay/transformers.rs b/crates/router/src/connector/worldpay/transformers.rsindex 61d04a8e9f..d31f4d65e7 100644--- a/crates/router/src/connector/worldpay/transformers.rs+++ b/crates/router/src/connector/worldpay/transformers.rs@@ -217,7 +217,13 @@ impl From<EventType> for enums::AttemptStatus {EventType::CaptureFailed => Self::CaptureFailed,EventType::Refused => Self::Failure,EventType::Charged | EventType::SentForSettlement => Self::Charged,- _ => Self::Pending,+ EventType::Cancelled+ | EventType::SentForRefund+ | EventType::RefundFailed+ | EventType::Refunded+ | EventType::Error+ | EventType::Expired+ | EventType::Unknown => Self::Pending,}}}@@ -227,7 +233,16 @@ impl From<EventType> for enums::RefundStatus {match value {EventType::Refunded => Self::Success,EventType::RefundFailed => Self::Failure,- _ => Self::Pending,+ EventType::Authorized+ | EventType::Cancelled+ | EventType::Charged+ | EventType::SentForRefund+ | EventType::Refused+ | EventType::Error+ | EventType::SentForSettlement+ | EventType::Expired+ | EventType::CaptureFailed+ | EventType::Unknown => Self::Pending,}}}