Payment failures without stripe source
-
I’m seeing payment failures occasionally due to Stripe Checkout allowing form submission without stripe_source.
I haven’t been able to reproduce the issue, but I can see the symptoms from the logs. The frontend never POSTs the payment details to get the source from stripe, but still allows the customer to submit the form without it, resulting in a payment failure. From the logs below it seems the ajax call is made a minute earlier, then the form is submitted, which in theory shouldn’t be possible.
<customer IP> http://www.localseeds.com.au – [16/Aug/2020:22:06:18 +0000] “POST /?wc-ajax=checkout HTTP/1.1” 200 169 “https://www.localseeds.com.au/checkout/” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36” | TLSv1.3 | 25.501 25.548 25.547 – D NC:300000 UP:1
<customer IP> http://www.localseeds.com.au – [16/Aug/2020:22:07:32 +0000] “POST /checkout/ HTTP/1.1” 200 41730 “https://www.localseeds.com.au/checkout/” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36” | TLSv1.3 | 2.620 2.658 2.658 – D NC:320000 UP:1Expected behavior
The frontend should post the payment details to stripe to get the source id before submitting the form.Environment:
WordPress Version: 5.5
WooCommerce Version: 4.4.1
Stripe Plugin Version: 4.5.2
Browser [e.g. chrome, safari] and Version
Any other plugins installed: dokan-lite 3.0.9, SG Optimizer 5.6.5, Hummingbird 2.5.1The page I need help with: [log in to see the link]
- The topic ‘Payment failures without stripe source’ is closed to new replies.