woocommerce / woocommerce-gateway-stripe

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

Order status transition fails after multiple Stripe SCA authentication failed attempts #2660

Open diegocurbelo opened 1 year ago

diegocurbelo commented 1 year ago

Describe the bug

A user reported a case where the payment in Stripe went through after SCA authentication initially failed which marked the order as failed. Then, there's another note that says Stripe charge was successful but order status remained unchanged (Failed).

Order notes when normal:

Stripe timeline when normal:

Order notes when error happens:

Stripe timeline when error happens:

activity-log.txt

thenbrent commented 1 year ago

A user reported a case where the payment in Stripe went through after SCA authentication initially failed which marked the order as failed. Then, there's another note that says Stripe charge was successful but order status remained unchanged (Failed).

Just noting that in the wp.org post, the symptoms are described a bit differently:

I checked the order in the WC Dashboard and found the status was Completed.

So in that case, it reads like the order's status was changed correctly but corresponding status transition events didn't occur, namely emails being sent. What's particularly weird here is that the status was changed despite the error message noted: "Error during status transition. First argument is expected to be parameter value, none specified."

I checked the ticket to make sure this wasn't simply an error with the AutomateWoo workflow requiring a pending -> complete transition, and it's not (it is set to run on any status that transitions to Completed).

For now, because this is a single report, I'm labelling it low priority; however, we should keep an eye out for other status transition related failures to confirm it's not a compatibility issue.

wyter commented 1 year ago

6360315-zen

Not a new occurrence, just adding the ticket where the issue was first reported.

wpniall commented 1 year ago

6466549-zen seems related, as Stripe SCA fails with a WooCommerce Subscriptions initial order that also has this Stripe plugin error reported in 6360315-zen and this WP.org forum thread.

Error during status transition. First argument is expected to be paramter value, none specified. Stripe error.

In this case:

anant1811 commented 1 year ago

Similar case here: #6639913-zen

On this one, SCA failed and the order was marked as Failed. Then, somehow the payment succeeded (merchant confirmed they got the payment in Stripe and we also verified using Stripe log and receipt URL), however, the log of this successful payment in Stripe has a different payment intent ID. On their Woo logs, the same payment intent ID shows this error: Could not find order via intent ID: pi_3Nd6WRDIF2D7xESr1r5xXZML

So, this is what I think has happened for this one:

WillBrubaker commented 1 year ago

I believe we have a case of this in 6688022-zen

Customer's first order failed and Error when processing payment: The latest payment attempt of this PaymentIntent has failed or been canceled, and the attached payment method has been removed. You can try confirming again with a new payment method. is logged. A few hours later, the same customer places another order. The merchant has told us that payment was taken at Stripe but the only thing in the Stripe log is the request to payment_intents for the second order. No further information about that transaction is logged.

ChrissiePollock commented 10 months ago

I think this is also happening in #7346874-zen. Some orders were stuck in Pending Payment although the payment had actually taken place, while there were also other orders that were put through to Processing without a payment. The logs show "Could not find order via charge ID."

Babylon1999 commented 10 months ago

One more here: https://wordpress.org/support/topic/how-the-payment-check-works-processing-failed-completed/

shameemreza commented 5 months ago

Possibly another report here: 8305191-zen Thread: https://wordpress.org/support/topic/the-provided-paymentmethod-has-failed-authentication/