woocommerce / woocommerce-gateway-stripe

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

3DS modal is not showing #2353

Open diegocurbelo opened 2 years ago

diegocurbelo commented 2 years ago

Describe the bug

The 3DS modal is not showing, and he following error is present in the browser console: The client_secret provided does not match the client_secret associated with the Payment Intent

Screen Shot 2022-05-07 at 16 56 13(1)

The 3 different tickets have different scenarios, but the error message is the same, also it might be a problem only with live cards:

Test cards work. Live cards do not in that 3DS popup is not displayed. They configured a radar rule for it to display but that only displayed a couple of console errors, and not the popup

Additional context

P2 post: pc4etw-sg-p2

Tickets:

ValueErr commented 2 years ago

Hi, is there any update on this? This is fairly critical as it's causing loss in sales.

nixiack commented 2 years ago

Hi @diegocurbelo, this still has an open option of needs reproduction on it, was @EvanDotPro able to replicate? Let us know :)

Thanks!

EvanDotPro commented 2 years ago

@nixiack I have not been able to reproduce this yet. :(

ValueErr commented 2 years ago

@nixiack I have not been able to reproduce this yet. :(

Hey,

That's no worries at all! If you would like, you can get in contact with myself and I can give you a staging site which has the above issue present.

Many thanks

billrobbins commented 2 years ago

Hey @ezdreamzy are you able to reproduce this readily on the staging site? If so we would be very interested in taking a look at it. Can I get you to open up a ticket at WooCommerce.com for us? Please include a link to this issue so we can keep this all together. Thanks!

ValueErr commented 2 years ago

Hey @ezdreamzy are you able to reproduce this readily on the staging site? If so we would be very interested in taking a look at it. Can I get you to open up a ticket at WooCommerce.com for us? Please include a link to this issue so we can keep this all together. Thanks!

I can indeed readily reproduce this on the staging site. My ticket ID is - 4906383. @billrobbins

nicholasjeberlin commented 2 years ago

Hi @ezdreamzy,

We reached out to you last week but haven't heard back. I reached out again today but just wanted to make sure you received our emails?

It would be a great help for us to be able to take a look at your staging site and troubleshoot this further.

Thanks in advance!

simplysaru commented 2 years ago

@ezdreamzy came back on ZD to confirm that they managed to fix the issue by disabling all the webhooks and enabling the only required minimum webhooks and that fixed the issue for them.

EvanDotPro commented 2 years ago

@ezdreamzy Glad to hear you resolved your issue! Was the issue simply due to webhook misconfiguration and thus this issue can be closed? That could certainly explain the struggle to reproduce this one!

nicholasjeberlin commented 2 years ago

Our other merchant experiencing this issue in 5175030-zen does not believe that the webhooks are the issue for them, but they are going to double-check what they have configured and let us know. We'll provide an update once we hear back!

EvanDotPro commented 2 years ago

@nicholasjeberlin Thank you!

ValueErr commented 2 years ago

@ezdreamzy Glad to hear you resolved your issue! Was the issue simply due to webhook misconfiguration and thus this issue can be closed? That could certainly explain the struggle to reproduce this one!

It is a little strange as all was working up until March 15th. I'm unsure if any updates were released around this time which caused our webhook configuration to break but all is indeed now well.

The thing I believe which made it very hard to diagnose was the fact 3d secure test cards were working with no issue and displayed the 3d secure modal but live cards didn't. This inconsistency I reckon caused this to go on for a lot longer than needed. Possibly it could be looked into so there is consistency on what is being shown for a test card and a live card.

Brianmitchtay commented 2 years ago

Seeing another case of this in 5371932-zen, going to ask them to check their webhooks and make sure that only the essential ones are in place.

maxlaf commented 2 years ago

Possibly another case of this in 5427804-zen. Asking them to use only the required webhook events.

gabrielbonifacio commented 2 years ago

Also reported on 5411111-zen.

dreamtooloud commented 2 years ago

Reported in 5538725-zen

waltomatt commented 2 years ago

I experienced the same issue with the launch of a new site this week. After looking through the logs & speaking to Stripe support it looks like the client & server components were making requests to different versions of the stripe API.

The POST to /v1/payment_intents was made with API version 2019-09-09 whereas the JS client was making a GET request to the 2017 version of the API, causing the error. We simply pinned the API version in the code and haven't experienced the issue since.

@EvanDotPro is there any chance we could get a setting within the plugin to pin the API version for both the PHP & JS components? Happy to create a pull request to do that.

pehaa commented 1 year ago

Possibly reported in zen-5663248

avantegarde commented 1 year ago

Another possible report 5731760-zen. Asking them to disable webhooks an re-enable only required ones. Doing that solved the problem for the user.

anant1811 commented 1 year ago

Also on 5860516-zen

AashikP commented 1 year ago

Another report in 5541735-zen:

both said it didn’t take them to any 3D secure completion area… One I tried a link created in Stripe and it the card went through without a problem and using 3d secure:

Stripe reports no attempts to authenticate:

dupi5m.png

marissaexplores commented 1 year ago

Possibly same issue on 5950212-zen. Suggesting they disable webhooks, then re-enable with only the required webhook events.

marissaexplores commented 1 year ago

42217080-hc Updating the webhook events and refreshing the live keys and webhooks on the site resolved the issue here.

shevene commented 1 year ago

6783005-zen

tvolpert commented 11 months ago

I believe I encountered this same issue in 7224694-zen -- it's intermittent on their site so not totally sure. I've advised them to update the webhooks and roll their API keys, but don't have any way to know if it worked until their customer(s) who've had the issue can try again

AashikP commented 8 months ago

Another report in 7557476-zen

glagonikas commented 1 month ago

We've been experiencing this issue on our website also. It's intermittent and we've not been able to reproduce, but we've seen a lot of customer reports saying the 3DS popup never showed up for them.

We were on API 2024-04-10 but we've now reconnected stripe using the "new" method and the API was updated to 2024-06-20. Not sure if this will make any difference, but we'll monitor.

We're not using the legacy checkout experience on this site. I'm not sure if it's related, but in other (unrelated) threads, people have reported the issue went away when they enabled legacy checkout.