Skip to content

Commit

Permalink
chore: [IOBP-940] Map payment outcome 19 in the mixpanel events (#6355)
Browse files Browse the repository at this point in the history
## Short description
This PR maps the payment outcome 19 in the mixpanel events with the
value `PAYMENT_METHOD_AUTHORIZATION_ERROR`.

## List of changes proposed in this pull request
- Added a case inside the switch of the mixpanel mapping outcome to
handle outcome 19 (`WalletPaymentOutcomeEnum.PAYPAL_REMOVED_ERROR`)
  • Loading branch information
Hantex9 authored Oct 31, 2024
1 parent 27cf2e8 commit b12d7b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ts/features/payments/checkout/analytics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export const getPaymentAnalyticsEventFromFailureOutcome = (
return "PAYMENT_REVERSAL_ERROR";
case WalletPaymentOutcomeEnum.IN_APP_BROWSER_CLOSED_BY_USER:
return "PAYMENT_WEBVIEW_USER_CANCELLATION";
case WalletPaymentOutcomeEnum.PAYPAL_REMOVED_ERROR:
return "PAYMENT_METHOD_AUTHORIZATION_ERROR";
default:
return outcome;
}
Expand Down

0 comments on commit b12d7b6

Please sign in to comment.