Automattic / Automattic/jetpack

Premium Content Block: Shows Up Even Without Stripe Connection

Open
#40,658 3 comments 0 reactions 0 assignees View on GitHub
[Block] Paid Content [Block] Premium Content [Feature] Earn Blocks [Pri] Low [Status] Auto-allocated Bug Customer Report [LEGACY] Earn Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### 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](https://user-images.githubusercontent.com/16104522/132063057-28e05f89-e80d-43f8-8c63-199101eb466f.png)

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](https://wordpress.com/support/wordpress-editor/blocks/premium-content-block/#setup).
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

Contributor guide

Open the contributing guide

Research direction

Reproduce the listed steps for a Simple site and compare the live-site behavior with the setup guidance in the linked Premium Content block support document. Done means an unconfigured block is hidden on the live site until Stripe is connected and payment plans are created and selected.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php, react
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.