How the payment check works (processing > failed > completed)
-
Hello,
I’m trying to figuring a behavior of this plugin, as I’m copying some order details on a different database using a snippet.
Today I get my email warning about an order failed, but when I checked, that order was completed.
Checking the Woocommerce logs on the order page, I see that Stripe refused the card, then it accepted it.
The log says
Transazione Stripe completata (ID Transazione: ********) Gennaio 3, 2024 alle 14:28 Elimina nota Lo stato dell’ordine è cambiato da In lavorazione a Completato. Gennaio 3, 2024 alle 14:28 Elimina nota Lo stato dell’ordine è cambiato da Fallito a In lavorazione. Gennaio 3, 2024 alle 14:28 Elimina nota Autenticazione SCA Stripe fallita. Motivo: Your card was declined. Lo stato dell’ordine è cambiato da In attesa di pagamento a Fallito. Gennaio 3, 2024 alle 14:28 Elimina nota Stripe payment intent created (Payment Intent ID: ******)
There’s a hook I can check about the payment completed?
I’m triyng woocommerce_payment_complete but it seems not working (or at least, it doesn’t do anything)
My checks about a failed order are made inside the woocommerce_order_status_failed and woocommerce_order_status_pending hooks.My other code is firing at woocommerce_checkout_order_processed, when I copy the data to my DB.
But after a failed payment, if the plugin then accepts a payment, where can I get that result? So I could update my records from “failed” to “completed”. Is still the woocommerce_payment_complete hook?
Thanks
- The topic ‘How the payment check works (processing > failed > completed)’ is closed to new replies.