Граф коммитов

362 Коммитов

Автор SHA1 Сообщение Дата
julianpoyourow b32169036f
chore(shared-cms): strapi 5 upgrade
Because:

- We want to use Strapi 5

This commit:

- Upgrades our queries and libraries to use Strapi 5

Closes FXA-10454
2024-10-07 18:19:58 +00:00
Davey Alvarez a362afba00
Merge pull request #17701 from mozilla/FXA-10092-Metrics-Respect-FxA-metrics-opt-out-flag
feat(next): respect metrics opt-out flag
2024-09-26 09:33:31 -07:00
Davey Alvarez d0f7bcd26c
respect metrics opt-out flag 2024-09-25 17:05:36 -07:00
Barry Chen 81c4761114
deps(sentry): upgrade Sentry to version 8
Because:
 - Sentry 8 is the latest version

This commit:
 - deletes some integration code since Sentry does it automatically
 - updates code to use the Sentry 8 API
 - updates a few proxyquire calls because they were cause module not
   found errors in CI
2024-09-25 12:31:19 -07:00
Reino Muhl 3da291f829
Merge pull request #17696 from mozilla/fix-firestore-dev-start
fix(payments-next): fix duplicate glean logs
2024-09-25 13:22:34 -04:00
Davey Alvarez a675412f3b
Merge pull request #17669 from mozilla/FXA-7831-Coupon-By-Param
Add support for subscription coupon via route param
2024-09-25 09:37:13 -07:00
Reino Muhl 8173bfe654
fix(payments-next): fix duplicate glean logs
Because:

- In development, while payments-next is running, when the nestapp
  restarts due to dev changes, the Glean logger adds additional log
  handlers, resulting in duplicate messages.

This commit:

- In development only, use a randomized logger name, so that no
  duplicate log handlers are created.

Closes #FXA-10450
2024-09-25 12:26:09 -04:00
Julian Poyourow 809018c451
Merge pull request #17683 from mozilla/FXA-10382
feat(payments-cart): add currency and total amount to subscription meta
2024-09-25 08:56:22 -07:00
Davey Alvarez 32ce1f5496
Add support for subscription coupon via route param 2024-09-25 08:50:46 -07:00
Lisa Chan b802c22139
fix(payments-next): Revise Details component 2024-09-25 10:18:57 -04:00
Reino Muhl 9649619c56
Merge pull request #17673 from mozilla/fxa-10429-config-no-cms
fix(cms): no cms config errors on data merge
2024-09-24 18:02:35 -04:00
Julian Poyourow be76b0d610
Merge pull request #17617 from mozilla/FXA-10112
fix(auth): strapi client cachebust and key server setup
2024-09-24 13:53:07 -07:00
julianpoyourow d094ade25e
feat(payments-cart): add currency and total amount to subscription meta
Because:

- DE needs this info since Fivetran is missing support for stripe
  multi-currency plans.

This commit:

- Adds the cart currency and total amount to the subscriptions metadata

Closes FXA-10382
2024-09-24 19:43:58 +00:00
Julian Poyourow 025f8caee2
Merge pull request #17668 from mozilla/FXA-7584
feat(payments-cart): add currency to cart
2024-09-24 11:59:54 -07:00
Lisa Chan 8d5ea056e1
feat(payments-next): Add button to show/hide product details when viewing page on mobile 2024-09-24 13:57:42 -04:00
julianpoyourow c90fbeb815
feat(payments-cart): add currency to cart
Because:

- We want to determine currency based on the tax address provided by the
  customer

This commit:

- Automatically determines the tax address and currency based on their
  IP address
- Allows user to update their tax address, thereby updating their
  currency

Closes FXA-7584
2024-09-24 17:13:06 +00:00
Lisa Chan 5b52b3ebe7
feat(payments-next): Add info message under Product Details when valid coupon is added to cart 2024-09-23 18:06:11 -04:00
Reino Muhl a93fb0f45e
fix(cms): no cms config errors on data merge
Because:

- On mapping data from the CMS to Stripe price and product metadata,
  for some prices the CMS data could not be found, resulting in error
  "No CMS config".
- The number of stripeLegacyPlan's returned by the CMS was limited to 10
  entries.

This commit:

- Adds a limit of 200, which is double the current expected Stripe
  Legacy Plans a RP is expected to have.

Closes #FXA-10429
2024-09-23 18:04:52 -04:00
Reino Muhl cfac715549
Merge pull request #17656 from mozilla/fxa-10436-sp2-l10n-fixes
fix(payments-legacy): support cms localization
2024-09-23 12:41:29 -04:00
Reino Muhl b5a67cef1d
fix(payments-legacy): support cms localization
Because:

- Legacy mapper was not using localization data from the CMS

This commit:

- Updated legacy mapper to utilize localization data.

Closes #FXA-10436
2024-09-23 10:28:15 -04:00
Davey Alvarez f946bdf12f
Set up error boundary for cart checkout flow 2024-09-20 16:01:05 -07:00
Reino Muhl fdd532a716
Merge pull request #17627 from mozilla/fxa-10087-next-glean-view
feat(next): glean emit view event
2024-09-20 12:28:16 -04:00
Reino Muhl 7dd569d383
feat(next): glean emit view event
Because:

- Record SubPlat P1 metric view event using glean

This commit:

- Adds payments-metrics library
- Adds PaymentsGleanManager to format events data and CMS data into the
  required format for Glean events recording.
- Adds PaymentsGleanService to handle metrics events emitted by Next.js
- Adds the manager and service to the NestApp
- Adds new config values to payments-next for Glean reporting
- Emit view event from Checkout start page

Closes #FXA-10087
2024-09-19 15:38:27 -04:00
Lisa Chan 1c9dd76736
feat(libs/payments): Validate coupon code 2024-09-19 11:01:54 -04:00
julianpoyourow f940d55a93
fix(auth): strapi client cachebust and key server setup
Because:

- Running with Strapi-enabled had two issues

This commit:

- Fixes two issues with Strapi-enabled auth

Closes FXA-10112
2024-09-16 18:53:25 +00:00
dschom ad35189ba2
task(settings,content,auth): Add account uid to gling pings 2024-09-13 09:45:22 -07:00
Lisa Chan c33d786bc6
Merge pull request #17334 from mozilla/FXA-7579
fix(libs): Add Coupon component
2024-09-11 12:38:53 -04:00
Lisa Chan e66d0a6042
feat(apps/libs): Add CouponForm Component 2024-09-11 11:57:51 -04:00
Reino Muhl 37dd3db33b
fix(payments): failed validation does not reject
Because:

- NextActions service methods do not reject on validation failures.

This commit:

- `validateOrReject` returns a promise that needs to be awaited.

Closes #
2024-09-11 10:20:40 -04:00
Reino Muhl 73bd174c9d
Merge pull request #17550 from mozilla/fxa-9998-add-sentry-payments
feat(next): add sentry to payments-next
2024-09-09 17:25:20 -04:00
Reino Muhl 54fefd2872
feat(next): add sentry to payments-next
Because:

- Be able to use Sentry in Next.js on both the client and the server

This commit:

- Add Sentry to payments-next using the installation wizard

Closes #FXA-9998
2024-09-09 13:21:21 -04:00
julianpoyourow ba65ee49d2
chore(payments): split payments-stripe into payments-customer 2024-09-06 23:00:01 +00:00
Reino Muhl 6c843bd846
Merge pull request #17521 from mozilla/fxa-9274-profile-client-lib
feat(libs): move profile client to libs
2024-09-05 13:20:51 -04:00
Reino Muhl 10e00b6456
feat(libs): move profile client to libs
Because:

- Only have one implementation of a profile server client, instead of
  various implementations in the services where its required.

This commit:

- Moves the profile client implementation from auth-server and into a
  dedicated library in libs

Closes #FXA-9274
2024-09-04 15:11:54 -04:00
Reino Muhl 3ac75baec1
Merge pull request #17497 from mozilla/fxa-10086-glean-yaml
feat(next): add subplat glean server yaml
2024-09-04 14:51:42 -04:00
Reino Muhl d5526d8b05
feat(next): add subplat glean server yaml
Because:

- Define glean events and metrics for subplat backend events

This commit:

- Adds metrics and events to subplat backend metrics yaml

Closes #FXA-10086
2024-09-04 14:05:01 -04:00
Reino Muhl 1c50ec8870
feat(next): add paypal sdk
Because:

- Initialize PayPal SDK and add button to checkout page

This commit:

- Adds PayPal SDK and initializes provider
- Adds PayPal button and only display when PayPal is selected in Payment
  Element
- Updates CSP for PayPal URLs
- Adds config options

Closes #FXA-7585
2024-08-29 12:19:07 -04:00
Lisa Chan a9af5fa402
fix(payments-stripe): Revises SubscriptionManager.update() 2024-08-28 12:01:39 -04:00
Lisa Chan d0cd5bd6f8
Merge pull request #17480 from mozilla/polish_pr
fix(libs): Revise file name/structure for client and server components
2024-08-28 09:07:52 -04:00
Julian Poyourow 2910faed05
Merge pull request #17482 from mozilla/fxa-10167
feat(payments-cart): do not update cart when not needed
2024-08-28 00:05:44 -07:00
julianpoyourow b5d36860a0
feat(payments-cart): do not update cart when not needed
Because:

- We were previously always updating the cart

This commit:

- Eliminates the unnecessary cart update call

Closes FXA-10167
2024-08-27 18:51:14 +00:00
Lisa Chan e41216aad0
feat(payments-cart): Add tax ID to customer and set appliedPromotionCode metadata in CheckoutService postPaySteps 2024-08-27 14:37:16 -04:00
Lisa Chan 79f0f04727
fix(libs): Revise file structure for client and server components 2024-08-27 13:38:26 -04:00
Julian Poyourow a09850732e
Merge pull request #17479 from mozilla/chore-cleanup-stripe-codependencies
chore(payments-stripe): cleanup manager co-dependencies
2024-08-27 10:14:57 -07:00
julianpoyourow 730969a647
chore(payments-stripe): cleanup manager co-dependencies
Because:

- We don't want managers importing managers

This commit:

- Removes the manager co-dependencies within payments-stripe
2024-08-27 16:35:55 +00:00
Julian Poyourow 1f21b561f9
Merge pull request #17384 from mozilla/fxa-10175
fix(shared-cms): re-enable caching decorator
2024-08-27 09:25:13 -07:00
Julian Poyourow 1cadefc176
Merge pull request #17448 from mozilla/FXA-10173
feat(cart): validate promo code prior to cart actions
2024-08-27 09:23:22 -07:00
julianpoyourow 11e2fc7f81
feat(cart): validate promo code prior to cart actions
Because:

- We don't want carts to be able to proceed with actions with invalid
  coupon codes

This commit:

- Adds validation so that an invalid coupon code doesn't result in the
  customer getting invisibly charged more than they saw in the checkout
  ui.

Closes FXA-10173
2024-08-26 21:35:31 +00:00
Lisa Chan 31234efc75
feat(payments-cart): Increment statsd counters 2024-08-26 10:46:21 -04:00
Lisa Chan 3ee23b407d
Merge pull request #17420 from mozilla/FXA-9620
fix(payments-stripe): Cleanup instances that incorrectly expect nullish values returned from client
2024-08-21 11:22:53 -04:00