Skip to content

Notify of connection issue due to blog ID change and offer fix when possible #2451

Open
@dechov

Description

@dechov

If there is a change in blog ID (i.e. Jetpack_Options::get_option( 'id' )), and especially if there is no longer a blog ID present, it would be good to notify the merchant. We could detect this by caching it and comparing.

There was messaging added in #1912 (by @marcinbot, fixing #1804) but it only appears if is_server_connected() – we may want to generalize this to cases where the connection is completely severed, except that we don't show that overview page task list unless WCPay is connected, so we'll have to expose something on the Setup screen (and possibly elsewhere).

In addition, if there is a blog ID but it is different from the one previously used on that site with WCPay, it might be good to also offer to re-link the original Stripe account, replacing the old blog ID with the new one (requiring a server change to re-link Stripe accounts between WPCOM sites with the same owner).

(Previously discussed a bit in p1626072282287000/1625774522.237500-slack-CGGCLBN58.)

It would be nice to track the occurrence / usage of this notification, if possible.

EDIT by @daquinons: According to this message, the scope of the issue is:

spotting blog ID mismatch and adding notification as part of this issue.

Part of the issue will be to split this one and to create a new issue for addressing the second part:

In addition, if there is a blog ID but it is different from the one previously used on that site with WCPay, it might be good to also offer to re-link the original Stripe account, replacing the old blog ID with the new one (requiring a server change to re-link Stripe accounts between WPCOM sites with the same owner).

which might be possible to be fixed using the Safe Mode?

Metadata

Metadata

Assignees

No one assigned

    Labels

    category: coreWC Payments core related issues, where it’s obvious.component: accountsIssues related to Accountscomponent: connection to wpcomIssues related to the Jetpack/wordpress.com connectionfocus: account lifecycleneeds designThe issue requires design input/work from a designer.priority: lowThe issue/PR is low priority—not many people are affected or there’s a workaround, etc.type: enhancementThe issue is a request for an enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions