Changes proposed in this Pull Request
Fixes 1164141197617539-as-1199554500149274 (Scan section shows upsell when user has Scan Realtime)
Scan Realtime is not available to purchase as an individual product at this time, however if the product is added through the Store Admin then Calypso blue and green was not recognizing it at all and consequentially it was not showing as a purchased product on the plans/pricing page and also the Scan upsell was showing when going to Jetpack –> Scan.
This PR makes Scan Realtime product available to the Calypso UI for if it is added through the Store Admin or for when we may want to make it available for purchase as an individual product in the future. It is still not available in the UI for purchase from the public, but it is available in the UI if it has already been purchased (through the Store Admin).
Testing instructions
- Checkout and run this PR in calypso blue & green concurrently.
- Select a Jetpack site that doesn’t have Scan yet
- Subscribe to Scan Realtime through the Store Admin
- Visit Plan –> Billing page (
http://calypso.localhost:3000/purchases/subscriptions/:site
) and verify that “Scan Realtime” is showing as a purchased product. (see Fig.1)
- Visit
/scan/:site
in Calypso blue & green and verify that the Scan component is showing and not the Scan Upsell. (See fig.2)
- Visit the
/plans/:site
in Calypso blue & green and verify that “Scan Realtime” product card is showing as a purchased product (with “Manage Subscription” button) (See Fig.3)
- Note: There is not a correct price set for Scan Realtime because it has not been set for purchase to the public
- Verify there are no errors in the console.
Fig.1
Fig.2
Fig.3
Unfortunately, no screenshots were provided by the developer.