Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QM Generic Checkout Updates : Payment Method Selected #6406

Merged
merged 4 commits into from
Oct 14, 2024

Conversation

GHaberis
Copy link
Contributor

What are you doing in this PR?

This PR applies some QM tracking that was omitted from the generic checkout on initial build...

  1. Rename sendEventContributionPaymentMethod to sendEventPaymentMethodSelected, so it's less "Contribution" specific.
  2. Update the generic checkout payment method selector to call sendEventPaymentMethodSelected to indicate payment method selected.
  3. Update the generic checkout Stripe Express Checkout Component to call sendEventPaymentMethodSelected to indicate "StripeExpressCheckoutElement" payment method selected.

These changes have been made across the generic checkout for Tier 1-3 and the new one-off checkout.

Trello Card

Copy link
Contributor

Size Change: +54 B (0%)

Total Size: 2.32 MB

ℹ️ View Unchanged
Filename Size Change
./public/compiled-assets/javascripts/[countryGroupId]/events/router.js 114 kB 0 B
./public/compiled-assets/javascripts/[countryGroupId]/router.js 260 kB +54 B (+0.02%)
./public/compiled-assets/javascripts/ausMomentMap.js 109 kB 0 B
./public/compiled-assets/javascripts/contributionsRedirectStyles.js 20 B 0 B
./public/compiled-assets/javascripts/digitalSubscriptionLandingPage.js 244 kB 0 B
./public/compiled-assets/javascripts/downForMaintenancePage.js 71.4 kB 0 B
./public/compiled-assets/javascripts/error404Page.js 71.4 kB 0 B
./public/compiled-assets/javascripts/error500Page.js 71.3 kB 0 B
./public/compiled-assets/javascripts/favicons.js 617 B 0 B
./public/compiled-assets/javascripts/paperSubscriptionCheckoutPage.js 198 kB 0 B
./public/compiled-assets/javascripts/paperSubscriptionLandingPage.js 87.8 kB 0 B
./public/compiled-assets/javascripts/payPalErrorPage.js 69.8 kB 0 B
./public/compiled-assets/javascripts/payPalErrorPageStyles.js 20 B 0 B
./public/compiled-assets/javascripts/promotionTerms.js 74.3 kB 0 B
./public/compiled-assets/javascripts/subscriptionsLandingPage.js 73.5 kB 0 B
./public/compiled-assets/javascripts/subscriptionsRedemptionPage.js 128 kB 0 B
./public/compiled-assets/javascripts/supporterPlusLandingPage.js 313 kB 0 B
./public/compiled-assets/javascripts/unsupportedBrowserStyles.js 20 B 0 B
./public/compiled-assets/javascripts/weeklySubscriptionCheckoutPage.js 195 kB 0 B
./public/compiled-assets/javascripts/weeklySubscriptionLandingPage.js 87.7 kB 0 B
./public/compiled-assets/webpack/136.js 2.17 kB 0 B
./public/compiled-assets/webpack/187.js 21.4 kB 0 B
./public/compiled-assets/webpack/27.js 22.6 kB 0 B
./public/compiled-assets/webpack/344.js 2.04 kB 0 B
./public/compiled-assets/webpack/706.js 107 kB 0 B

compressed-size-action

function sendEventContributionPaymentMethod(
paymentMethod: PaymentMethod | null,
function sendEventPaymentMethodSelected(
paymentMethod: PaymentMethod | 'StripeExpressCheckoutElement' | null,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PaymentMethod type is starting to feel like a code smell, maybe it will become clearer once we remove the old checkouts

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah agreed, this was copy & paste of a work around applied on the generic checkout, but certainly we could do with revisiting this when we start removing the old checkouts.

Copy link
Contributor

@andrewHEguardian andrewHEguardian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

@GHaberis GHaberis merged commit 6fb67be into main Oct 14, 2024
18 checks passed
@GHaberis GHaberis deleted the gh-qm-generic-updates-1 branch October 14, 2024 13:49
@prout-bot
Copy link

Seen on PROD (merged by @GHaberis 13 minutes and 19 seconds ago)

Sentry Release: support-client-side, support

Copy link
Contributor

@paul-daniel-dempsey paul-daniel-dempsey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants