woocommerce / woocommerce-gateway-stripe

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

[Deferred intent] Prevent duplicated / mistaken payment processing of orders #2785

Open a-danae opened 11 months ago

a-danae commented 11 months ago

Problem

We must only attempt to create and confirm an intent for orders with a pending/failed status.

We could check that $order->needs_payment() before processing a payment for this.

There could also be other variables to consider for preventing this behavior, like webhooks processing a payment or changing the order status, or caching that doesn't reflect the actual status of the order.

Acceptance criteria

Context

github-actions[bot] commented 1 month 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.

github-actions[bot] commented 2 weeks ago

This issue has gone 180 days (6 months) without any activity.