Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.58k stars 797 forks source link

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

Open vparkhere opened 6 months ago

vparkhere commented 6 months ago

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.

mrfoxtalbot commented 6 months ago

I can reproduce this on my testing Dotcom (AT) & JP sites.

Screenshot on 2024-03-22 at 07-03-01

brinbliss commented 6 months ago

Ran into the issue in 7935477-zd-a8c. Nothing showed up when a Donation Block was inserted on a Simple site. Asked user to connect to Stripe, but there was no information on the user's side informing them to connect to Stripe first.

github-actions[bot] commented 6 months ago

Support References

This comment is automatically generated. Please do not edit it.

marissaexplores commented 5 months ago

Encountered this bug when adding the Donations Form block to this DIFM Express build. Provided the customer with instructions for the workaround.