Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.42k stars 1.99k forks source link

Premium Content Block: Shows Up Even Without Stripe Connection #55998

Open carinapilar opened 3 years ago

carinapilar commented 3 years ago

Steps to Reproduce

  1. Create a new page on a site with a paid plan
  2. Add the Premium Content block on the page
  3. Publish the page and check on the live site

What I expected to happen

For the block to be hidden on the site, since you didn't finish setting it up (connecting Stripe, creating and selecting payment plans).

What actually happened

It shows the visitor/subscriber view and a warning "Connect to Stripe to use this block on your site.":

PremiumContentBlock

It seems at some point it was working as expected, and asking to set up Stripe first to use the block, as it shows in our support doc here.

image

Context

Found this odd "Connect to Stripe to use this block on your site." message on a user's site.

Operating System

macOS

Browser

Chrome/Chromium

Simple/Atomic

Simple

Reproducibility

Consistent

formosattic commented 3 years ago

Thanks for the report @carinapilar!

On a live site, logged out, as a visitor, the block is hidden for me. Here's what my testing shows:

Owner/Subscriber view Visitor view
image image1

For clarity to users, we could indeed reinstate the message This block will be hidden from your visitors until you connect to Stripe.

Before switching this to an Enhancement, could you give it another test?

synora commented 3 years ago

@formosattic I'm able to replicate your screenshots.

Just below the Setup section of the block's support doc that @carinapilar mentioned, the following should be seen within the editor:

Screen Shot on 2021-09-14 at 13-49-07

This leads me to believe this is a bug instead of an enhancement. I'll leave the bug label on for now.