Automattic / Automattic/jetpack

Site Editor Compatibility: Stripe connect flow does not redirect to site-editor

Open
#19,540 2 comments 0 reactions 1 assignee Claimed by @stacimc View on GitHub
[Block] Donations [Focus] FSE [Pri] Low [Status] Auto-allocated Bug Earn Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

In the new site editor in Gutenberg (`/wp-admin/admin.php?page=gutenberg-edit-site`), the Connect to Stripe flow does not redirect back to the site-editor as a user might expect.

#### Steps to reproduce the issue

1. With the Gutenberg plugin active (>=10.4.0-rc1), activate a block-ready theme (like tt1-blocks)
2. Upgrade your site to a Premium plan to avoid upgrade nudges.
3. Insert a Payments block (or any other block requiring a Stripe connection) in the footer. You should see the Connect Stripe button in the toolbar.
4. Click the Connect Stripe button to enter the Stripe connection flow.
5. Either connect a Stripe account or select "Skip this form" if you have the store sandboxed, in order to complete the Stripe connection.

#### What I expected
After successful Stripe connection, I would expect to be redirected back to the site-editor, and my changes should have been saved (ie the Payments block should still be in the footer, now without an upgrade nudge)

#### What happened instead
After upgrading I was redirected to the Earn page (`https://wordpress.com/earn/payments/stacifakefsesite.wordpress.com?stripe_connect_success=gutenberg`). When I re-entered the site editor, my changes had not been saved (the Payments block was no longer in the footer).

**Screenshots**
If applicable, add screenshots to help explain your problem.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.