Repository navigation
[PB-6912]: feat/add the check-your-email screen after paying without an account - #2189
Conversation
Show a dedicated success screen for buyers who paid without an account, asking them to check their email to finish setting it up (with a resend option), and open the checkout success route to unauthenticated buyers.
… into local/PB-6873-all
…up-on-login' into local/PB-6873-all
| localStorageService.removeItem(LocalStorageItem.CouponCode); | ||
| } | ||
|
|
||
| const CheckYourEmail = ({ email }: { email: string }) => { |
There was a problem hiding this comment.
something strange name for a component. Maybe something as AccountSetupEmailSentCard is more accurate for a component
There was a problem hiding this comment.
Indeed, improving the name of the component. 👍🏽
| if (accountSetupEmail) { | ||
| return; | ||
| } |
There was a problem hiding this comment.
in this case the CheckoutAccountSetupEmail is never removed. Is this the desired behaviour?
There was a problem hiding this comment.
Yep, as we use this variable to display either the "Setup email has been sent" screen or redirect the user to the app (like the current flow). This variable should be removed after the account setup. Maybe this component is not the place to remove the variable and we can move the removal to another place.
…r-checkout' into feat/PB-6912-check-your-email-screen
…r-checkout' into feat/PB-6912-check-your-email-screen
cf1b44b
into
featurew/sign-up-passwordless-for-checkout
|



Description
Last part of PB-6912: after paying without an account, the buyer sees a "check your email" screen with the email the setup link was sent to, a button to resend it and a hint to check the spam folder. Logged-in buyers keep going to Drive as before.
The checkout success route no longer requires a session, since the payment provider sends buyers without an account back to it.
Related Issues
Related Pull Requests
feat/PB-6912-pay-with-email-only)Checklist
Testing Process
Unit tests for the success screen (buyer without a session sees the check-your-email screen; logged-in buyer is redirected to Drive).
tsc, lint, the i18n check and the checkout test suites pass.Additional Notes
Purchases without a stored user are not tracked by the GA and Impact trackers (Meta is); this needs a separate decision. Non-English translations are drafts.