Changes proposed in this Pull Request
- We want to block product purchases that are incompatible with multisite. Currently, this means blocking Jetpack Backup and Jetpack Scan purchases.
Testing instructions
Prerequisite: self-hosted Jetpack multisite.
- Run this PR.
- Select your Jetpack multisite.
- Visit
http://calypso.localhost:3000/checkout/[site]/jetpack_backup
.
- Verify that you see a Notice/Banner at the top of the card component that says you can’t buy Jetpack Backup.
- Verify that the purchase button is disabled.
- Visit
http://calypso.localhost:3000/checkout/[site]/jetpack_daily
.
- Verify that you see a Notice/Banner at the top of the card component that says you can’t buy Jetpack Backup Daily.
- Verify that the purchase button is disabled.
- Visit
http://calypso.localhost:3000/checkout/[site]/jetpack_scan
.
- Verify that you see a Notice/Banner at the top of the card component that says you can’t buy Jetpack Scan.
- Verify that the purchase button is disabled.
(Try these steps with as much types of payments as you can).
Note: to test AliPay and WeChat payment types, you need to sandbox D45446-code and D45650-code.
Fixes 1184358343400545-as-1184719508034177
Demo
Payment type: credits
Payment type: credit card with Stripe
Payment type: PayPal
Payment type: AliPay
Payment type: WeChat
Unfortunately, no screenshots were provided by the developer.