woocommerce / woocommerce-gateway-stripe

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

No debug info if refund fails #1244

Open WillBrubaker opened 4 years ago

WillBrubaker commented 4 years ago

Describe the bug In 10654533-HC the user reported that they were receiving a "error occurred while attempting to create the refund using the payment gateway" message when attempting a refund. Sounded like something I could diagnose via debug logs so asked the user to enable it and try the refund again. No information was logged.

To Reproduce

  1. Remove the _transaction_id meta from the order
  2. Attempt to refund the order
  3. Get failure message
  4. Sadness ensues when trying to diagnose the failure via logged information.

Expected behavior

For the reason that process_refund is returning false to be logged in the Stripe debug log.

reykjalin commented 4 years ago

The no logging part of this is interesting, and feels like a bug. Maybe @DanReyLop or @RadoslavGeorgiev know whether we're expecting failed refunds to be logged or not, and thus whether this is missing functionality or a bug.


Tagging with a Low priority for now since we haven't seen many reports of this issue.

Brianmitchtay commented 1 year ago

Seeing this come up again in 5946760-zen. The user would have benefitted greatly from better logging here.