Automattic / Automattic/jetpack

Donations Block: Missing prompt to connect to Stripe when adding block

Open
#36,503 5 comments 1 reaction 0 assignees View on GitHub
[Block] Donations [Platform] Atomic [Platform] Simple [Plugin] Jetpack [Pri] Normal [Status] Stale Bug Customer Report [LEGACY] Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Impacted plugin

Jetpack

### Quick summary

Adding the Donations Form block to a new site that has not had a Stripe account connected will show a blank space.

### Steps to reproduce

1. Create a new site or use one that has never had a Stripe account connected to it.
2. Go to a page or post and add the Donations Form block.

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

I expect to see a prompt that says "Connect to Stripe to use this block on your site", similar to what is shown in this support documentation:
https://wordpress.com/support/wordpress-editor/blocks/donations/#step-2-connect-stripe-to-accept-donations

### What actually happened

I added the Donations Form block and nothing shows up, nothing in the Editor nor in the public page:

https://github.com/Automattic/jetpack/assets/11635760/7ac8eb57-7e77-4a58-b4b5-85d76bf2b77f

### Impact

Some (< 50%)

### Available workarounds?

Yes, easy to implement

### Platform (Simple and/or Atomic)

Simple, Atomic

### Logs or notes

Workaround: Go to Tools > Monetize and connect a Stripe account. Once it's connected, any preexisting Donations Form blocks as well as future Donations Form blocks will show up.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by adding the Donations Form block on a site without a connected Stripe account, then compare it with the connected flow described in the linked support documentation. Start at the Donations Form block and the Tools > Monetize connection flow; done means the editor shows a Stripe connection prompt and the public page no longer renders a blank space.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
frontend, payments
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.