diff --git a/crates/router/src/connector/checkout/transformers.rs b/crates/router/src/connector/checkout/transformers.rs index 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 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