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): [Checkout] Fix incoming webhook event mapping (#1197)
Prasunna Soppa912a1084846b
diff --git a/crates/router/src/connector/checkout/transformers.rs b/crates/router/src/connector/checkout/transformers.rsindex dcf89e550d..662a4dfe7c 100644--- a/crates/router/src/connector/checkout/transformers.rs+++ b/crates/router/src/connector/checkout/transformers.rs@@ -762,7 +762,7 @@ impl From<CheckoutTransactionType> for api::IncomingWebhookEvent {fn from(transaction_type: CheckoutTransactionType) -> Self {match transaction_type {CheckoutTransactionType::PaymentApproved => Self::PaymentIntentSuccess,- CheckoutTransactionType::PaymentDeclined => Self::PaymentIntentSuccess,+ CheckoutTransactionType::PaymentDeclined => Self::PaymentIntentFailure,CheckoutTransactionType::PaymentRefunded => Self::RefundSuccess,CheckoutTransactionType::PaymentRefundDeclined => Self::RefundFailure,CheckoutTransactionType::DisputeReceived