Automattic / Automattic/jetpack

Paid Content Block: Before Stripe Connection, Block Partially Renders in Subscription Emails

Open
#34,150 1 comment 0 reactions 0 assignees View on GitHub
[Feature] Paid Content [Plugin] Jetpack [Pri] Low [Status] Priority Review Triggered [Status] Stale Bug Earn Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Impacted plugin

Jetpack

### Quick summary

When an email is sent out for a post that has a Paid Content Block before a user has connected a Stripe account the behavior is confusing.

We include the text:

> Connect to Stripe to use this block on your site. Connect

But only site owners can take that action. Additionally, we show the contents of the post and a message.

### Steps to reproduce

1. Add a paid content block
2. Don't connect Stripe
3. Publish the post

### A clear and concise description of what you expected to happen.

The block indicates this will be disabled until a Stripe connection:

![Screenshot_at_November_15th_2023_-_2 52 14_pm](https://github.com/Automattic/jetpack/assets/45246438/91e0292c-29bf-4b2b-8671-ea80f3ee4db6)

As a result, I wouldn't expect we would send out the subscriber-only content.

Also, we shouldn't show the Stripe connection notice to all subscribers.

### What actually happened

The email sent includes the subscriber-only content and a notice to connect Stripe:

![Screenshot_at_November_15th_2023_-_2 47 29_pm](https://github.com/Automattic/jetpack/assets/45246438/4cd54cfd-28e8-4fee-8625-be92d8e515ac)

### Impact

Most (> 50%)

### Available workarounds?

No but the platform is still usable

### Platform (Simple and/or Atomic)

Self-hosted

### Logs or notes

_No response_

Contributor guide

Open the contributing guide

Research direction

The report names no files, tests, or entry points. Reproduce the issue with an unconnected Stripe account, a Paid Content Block, and a published post, then trace how the block is rendered in subscription emails. Done means subscriber-only content and the Stripe connection notice are not sent to subscribers before connection.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
content, payments
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.