fix(connector): [Checkout] Fix incoming webhook event mapping (#1197)

This commit is contained in:
Prasunna Soppa
2023-05-18 02:46:04 +05:30
committed by GitHub
parent 75ba3ff09f
commit 912a108484

View File

@ -762,7 +762,7 @@ impl From<CheckoutTransactionType> for api::IncomingWebhookEvent {
fn from(transaction_type: CheckoutTransactionType) -> Self { fn from(transaction_type: CheckoutTransactionType) -> Self {
match transaction_type { match transaction_type {
CheckoutTransactionType::PaymentApproved => Self::PaymentIntentSuccess, CheckoutTransactionType::PaymentApproved => Self::PaymentIntentSuccess,
CheckoutTransactionType::PaymentDeclined => Self::PaymentIntentSuccess, CheckoutTransactionType::PaymentDeclined => Self::PaymentIntentFailure,
CheckoutTransactionType::PaymentRefunded => Self::RefundSuccess, CheckoutTransactionType::PaymentRefunded => Self::RefundSuccess,
CheckoutTransactionType::PaymentRefundDeclined => Self::RefundFailure, CheckoutTransactionType::PaymentRefundDeclined => Self::RefundFailure,
CheckoutTransactionType::DisputeReceived CheckoutTransactionType::DisputeReceived