woocommerce / woocommerce-gateway-stripe

The official Stripe Payment Gateway for WooCommerce
https://wordpress.org/plugins/woocommerce-gateway-stripe/
236 stars 206 forks source link

Pass $_SERVER['HTTP_HOST'] as metadata to Stripe #2491

Open nicholasjeberlin opened 1 year ago

nicholasjeberlin commented 1 year ago

When troubleshooting double charges with WooCommerce Subscriptions + Stripe, it often is due to a duplicate environment out there.

Sometimes the duplicate site is challenging to locate as the files/database exist, but the site_url is the same in the database.

Currently in woocommerce-gateway-stripe/includes/abstracts/abstract-wc-stripe-payment-gateway.php, the log includes:

'site_url' => esc_url( get_site_url() ),

If we add:

'site_host' => $_SERVER['HTTP_HOST'],

This will make it much easier to identify where the duplicate charges are originating from.

github-actions[bot] commented 3 weeks ago

Hi, This issue has gone 150 days (5 months) without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest version, you can help the project by responding to confirm the problem and by providing any updated reproduction steps. Thanks for helping out.