jamesgallan
Forum Replies Created
-
Once, that happens the Charge ID comes back (which I can see in the WooCommerce Stripe Gateway logs), however the ID is empty in the order notes (see here: https://snipboard.io/jrgGMY.jpg).
@dmcat sorry for the delay and thanks for the additional details.
I can see in your screenshot that the charge ID logged in the order notes is empty. There’s a few places in the code where we record the charge ID in that format. All of them fetch the charge ID from the Stripe charge response or Webhook notification. You mentioned that you can see the charge ID in the Stripe logs. Given that, I’m not sure where the charge ID is going missing between it being logged in the Stripe logs but is empty in the order note.
Do you have any php error logs like
Attempt to read property "id" on ...or similar?Another thing I noticed looking at your order note screenshot is that the charge is being logged 4 hours after the intent was created. ie the payment intent was created at 04:02 but the charge entry occurred at 08:05. Is that similar with all these cases? Card payments are typically processed immediately so that stuck out.
Given the time gap, I suspect these empty order note charge entries are occurring via a webhook notification. Can you confirm that?
Hi @dmcat,
I wanted to suggest another potential area for investigation. You mentioned that your client is using the YITH Subscriptions plugin.
For context, subscription renewal payments are initiated by the Subscriptions plugin, with the Stripe plugin handling the payment collection. If multiple renewal payments are occurring, it might indicate that the Subscriptions extension is triggering the gateway multiple times.
You also mentioned that these payments were occurring up to 3 days after the initial payment succeeded, and even in cases where the subscription is on hold. These are strong indicators that the subscription plugin might be engaging the payment method outside of the expected schedule.
Since YITH Subscriptions isn’t one of our extensions, I’m not familiar with how their plugin interacts with the Stripe extension. However, it might be worth investigating whether these duplicate charges occurred due to YITH Subscriptions running a renewal process out of schedule.