Skip to content

Commit

Permalink
chore: [IOBP-1141] Added psp_selected mixpanel property for the pay…
Browse files Browse the repository at this point in the history
…ment flow (#6616)

## Short description
This PR adds the `psp_selected` mixpanel property to the outcome errors
page if present.

## List of changes proposed in this pull request
- Mapped the `psp_selected` property to the mixpanel event when occurs
an outcome error.
  • Loading branch information
Hantex9 authored Jan 20, 2025
1 parent 877ec8e commit d78090d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ts/features/payments/checkout/analytics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export type PaymentAnalyticsProps = {
payment_method_selected_flag: PaymentAnalyticsSelectedMethodFlag;
preselected_psp_flag: PaymentAnalyticsPreselectedPspFlag;
selected_psp_flag: PaymentAnalyticsSelectedPspFlag;
psp_selected: string;
editing: PaymentAnalyticsEditingType;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ const WalletPaymentOutcomeScreen = () => {
service_name: paymentAnalyticsData?.serviceName,
attempt: paymentOngoingHistory?.attempt,
expiration_date: paymentAnalyticsData?.verifiedData?.dueDate,
psp_selected: paymentAnalyticsData?.selectedPsp,
payment_phase:
outcome === WalletPaymentOutcomeEnum.GENERIC_ERROR
? getPaymentPhaseFromStep(currentStep)
Expand Down

0 comments on commit d78090d

Please sign in to comment.