woocommerce / woocommerce-gateway-stripe

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

Occasionally missing _stripe_net, _stripe_fee, and _stripe_currency meta #2478

Open danieleperilli opened 1 year ago

danieleperilli commented 1 year ago

We noticed that sometimes the following attributes are not stored in completed orders (paid with CC):

No errors are logged and the other data is present. It doesn't happen for every order but occasionally, although in recent weeks it's more frequent.

As we use a plugin for Quickbooks that needs these attributes, we need to make sure that data is always available. Do you know why this happens? Do you have any advice, or some code to retrieve this information in a batch later or something similar?

Thanks!

Environment:

dougaitken commented 1 year ago

To ensure the WooCommerce team are having the most impactful work, we review older open Issues on this GitHub repository to find out what is still relevant.

As we use a plugin for Quickbooks that needs these attributes, we need to make sure that data is always available. Do you know why this happens?

I can't find any other similar reports so I wonder if this is a conflict. I appreciate some time has passed since the original comment, thanks for your patience - have you made any progress to understanding the cause of this?

To confirm if this is a bug or conflict, please first go through the WooCommerce How to Test for Plugin and Theme Conflicts documentation.

danieleperilli commented 1 year ago

I do confirm that the issue still exists, but as I said, it's not programmatic, so I cannot just disable all the other plugins to see if it still occurs. This is something sporadic, and we are handling with a custom hook that is triggered when an order is completed, checking if those metas are missing and, if so, sending us an email.

grig-23 commented 2 months ago

Not sure if it's the same issue as described here - but with the latest version of Stripe, 8.6.1, if "Issue an authorization on checkout, and capture later" checkbox in the settings is un-ticked - the Stripe fee and Stripe Payout will be missing:

Screenshot 2024-08-13 at 19 25 02

This is how it's supposed to look like:

Screenshot 2024-08-13 at 19 25 28

I was able to replicate on a test site.

mattallan commented 3 hours ago

This one might've been fixed by https://github.com/woocommerce/woocommerce-gateway-stripe/pull/3508 cc @wjrosa as I see you're assigned to this :)