-
Notifications
You must be signed in to change notification settings - Fork 217
Showing connection modal when oauth is needed #4669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Showing connection modal when oauth is needed #4669
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good and it works as described in the PR.... but I think the UX might be confusing.
When the merchant is using manual/shared keys the gateway can still be used for purchases but settings are not available... maybe we can load the onboarding screen by default, but also keep the "Payment Methods" and "Settings" tabs?
Or change the `Connect an account" buttons to the same "Re-authenticate" button we use in the current CTA... and maybe the tittle, currently is "Get started with Stripe" (both both onboarding and re-connections)
--
Also, there is a small error in the testing instructions:
Set up your store to behave as if it did not connect via OAuth. You can do it by either:
-- Removing your keys directly in the database after connecting
This actually disconnects the plugin (the gateway can't be used for purchases), to simulate a non-connected merchant, we need to remove the connection_type
(or test_connection_type
attr from the settings:
wp option patch delete woocommerce_stripe_settings test_connection_type
Thanks for the review, Diego!
Yeah, I agree! @orcungogus could you please advise here? Another suggestion would be to update the existing "Account details" block instead. Changing the "Configure connection" button to "Re-connect" and some other parts of it: ![]()
Oops. Thanks for pointing that out |
Fixes STRIPE-549
Figma nFI8jCCAQnd19PNwScqVU6-fi
Changes proposed in this Pull Request:
As requested by our design team, this PR enables the Stripe account connection to appear for merchants who did not connect via OAuth. It also adds a new notice on top of the settings page, like below:

The goal is to incentivise more merchants to connect via OAuth to improve security.
Testing instructions
update/showing-connection-modal-when-oath-is-needed
)-- Removing your keys directly in the database after connecting
-- Forcing
$stripe_connect->is_connected_via_oauth( 'live' )
to returnfalse
Changelog entry
Changelog Entry Comment
Comment
Post merge