Because
- We want to spread out any flood of cache resets (unlikely since servers take varying amounts of time to spin up, but possible)
- We want to wait on a pending cachable request between reset periods, simply due to the sheer number of requests that could go through in the interval during a cache reset period.
- We want to enable Strapi in "shadow mode" to log potential mismatches
This commit
- Adds a random spread to cache reset interval
- Waits on pending cachable requests
- Enables Strapi in key_server if config is present
Because:
- We want to able to confirm a user's setup code
This Commit:
- Adds a method called confirmCode to the recovery-phone service
- Register the phone number to the account in the event the code provided is valid.
Because:
- On the checkout page, after populating the email clicking continue
should navigate the user to the FxA signin page for signin.
- On the checkout page, when clicking Google/Apple button, it should
start the third party auth via FxA.
- Completion of either signin option should navigate the user back to
the checkout page in a signed in state.
This commit:
- Updated Auth.js provider to support email, google and apple login
- Customers are redirected to the '/new' page on successful login, which
creates a new cart with the customers uid added.
- Updates Payments Next auth config to a non-public client.
Closes #FXA-10548
Because:
- We want to be able to setup a new phone number
This Commit:
- Creates a recovery phone service
- Stubs out storeUnconfirmed in RecoveryPhoneManager
- Adds config for recovery phone service
- Adds tests for recovery phone service
- Adds new error type RecoveryNumberNotSupportedError
- Public exposes generateCode on OtpManager.
Because:
- We want a SMS manager to send messages
This Commit:
- Creates an sms manager that wraps sending of twilio messages
- Ensures that manager is injectable with NestJS
- Creates a twilio provider
- Ensures that provider is injectable with NestJS
- Introduces the twilio as a root level package dependency
Because:
- Need to be able to enable or disable glean recording of events.
This commit:
- Adds enabled value to payments metrics glean config
- Updates payments metrics glean manager to respect enabled config value
Closes #FXA-10564
Because:
- Update emitter and glean records with actual payment provider
- Add paypal payment provider logic to success page
This commit:
- Updates emitter calls to include payment provider
- Updates emitter event for a failure to allow for undefined payment
provider
- Removes ConfirmationDetail component from success page and moves logic
into page JSX.
- Adds card and paypal images
Closes #FXA-10503 FXA-10608
Because:
- We want to improve startup performance of admin-server
- We determined using the @sentry/node package in the admin-server was source of slowdown
- Using @sentry/nestjs made a big improvement in startup time.
This Commit:
- Switches to using @sentry/nestjs integration for admin-server
- Refactors libs/sentry into three distinct contexts libs/sentry-nestjs, libs/sentry-node, libs/sentry-browser, and libs/sentry-utils
- Extracts common functions to libs/sentry-utils so they can be reused.
Because:
- Update Stripe checkout to use confirmation token instead of payment
method while creating subscription and confirming the payment intent.
This commit:
- Updates the frontend to create a ConfirmationToken instead of payment
method
- Updates Stripe Checkout to use ConfirmationToken
- Updates Stripe Checkout to confirm payment intent
Closes #FXA-7581
Because:
- Product IDs can be shared between multiple offerings
This commit:
- Switches to comparing offering apiIdentifiers (offering IDs) rather
than productIds
Closes FXA-10536
Because:
- accountCustomer record is not created for uid and stripeCustomerId for
a new customer.
This commit:
- Updates the CheckoutServic to create accountCustomer record when uid
and stripeCustomerId exist.
Closes #
Because:
- Use the payments ui actions TS alias for all actions imports
This commit:
- Updates imports to make use of the payments ui actions TS alias
Closes #
Because:
* We want consistent logging that is compliant with the Nest
LoggerService.
This commit:
* Updates the MozLoggerService to implement the Nest LoggerService
interface.
* Updates consumers of MozLoggerService to use standard LoggerService
methods.
Because:
- payments-next should be be recording all P1 metrics.
This commit:
- Renames PaymentsGleanService to PaymentsEmitterService to more
accurately indicate that this service will be used to handle all
Emitter events.
- Restructure EmitterService to reuse common functionality.
- Restructure EmitterService to reuse common functionality.
- Renames recordGleanEvents to recordEmitterEvents to more accurately
indicate that this action should be used to emit Emittery events on
the server.
- Emit CheckoutView/Engage/Submit/Success/Error events from pages and
components where necessary.
- Record the appropriate Glean event for each of the Emittery events.
Closes #FXA-10088