PayPlug plugin redirects admin requests and breaks Google Site Kit OAuth connect
-
Hello,
I am experiencing an issue with the PayPlug for WooCommerce plugin (v2.16.1).
When attempting to connect the “Site Kit by Google” plugin, the OAuth process fails because I am systematically redirected to the PayPlug settings page:
/wp-admin/admin.php?page=wc-settings&tab=checkout§ion=payplug&from=WCADMIN_PAYMENT_SETTINGS#/
After investigation:
- The issue disappears as soon as PayPlug is deactivated
- It that a forced redirection occurs in the admin (likely via admin_init or a similar hook)
- This redirection interrupts the OAuth callback from Google (URL parameters such as ?code=…&scope=…)
As a result, it is impossible to complete the connection to Google Site Kit (and potentially other external services relying on OAuth).
Could you please check:
- Whether the plugin triggers a redirection on admin pages
- And if so, add conditions to avoid interfering with external OAuth callbacks
This behavior can cause conflicts with other integrations and should ideally be limited to specific contexts only.
I can provide additional technical details if needed.
Thank you in advance for your support.
You must be logged in to reply to this topic.