A4A Marketplace: add Pressable post-checkout confirmation banner#111634
Open
tiagonoronha wants to merge 1 commit into
Open
A4A Marketplace: add Pressable post-checkout confirmation banner#111634tiagonoronha wants to merge 1 commit into
tiagonoronha wants to merge 1 commit into
Conversation
Jetpack Cloud Live (direct link)
Automattic for Agencies Live (direct link)
|
Contributor
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
a803703 to
a720ec7
Compare
|
Looks like one of the E2E tests has failed. You can fix them following these steps:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of A4A-2724
Proposed Changes
client/a8c-for-agencies/sections/purchases/licenses/licenses-overview/pressable-purchase-confirmation-message.tsx(new) — a success banner shown at the top of the Licenses page after a Pressable plan is purchased. It congratulates the agency, explains the next step is adding or migrating a site, and offers an Explore your Pressable dashboard button linking to the Pressable agency dashboard. It reads apressable_purchasedquery arg, fires acalypso_a4a_pressable_plan_purchasedTracks event on display (and…_explore_dashboard_clickon the CTA), then strips the arg from the URL.client/a8c-for-agencies/sections/marketplace/billing-dragon-checkout/index.tsx— when the Billing Dragon checkout contains a Pressable plan (from either the cart items or theplanSlugroute), the post-checkout redirect to/purchases/licensesnow carriespressable_purchased=<slug>so the banner above can surface. Non-Pressable purchases redirect exactly as before.client/a8c-for-agencies/sections/purchases/licenses/licenses-overview/index.tsx— mounts the banner in the page’sLayoutTop, above the existing notices.Why are these changes being made?
After buying a Pressable plan, agencies landed on the Licenses page with no guidance on what to do next. This adds a clear post-purchase confirmation that points them to their next step — adding or migrating a site — and gives them a direct way into the Pressable dashboard, so the moment after checkout is a hand-off rather than a dead end.
Testing Instructions
https://my.pressable.com/agency/authin a new tab.pressable_purchasedquery arg is removed from the URL after the banner renders, and that reloading the page does not re-show the banner.Pre-merge Checklist