-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Payments using the Express Checkout Element fail if card testing prevention is enabled #8981
Comments
@dwainm although it's focused on checkout, I think it's a better fit for your team due to carding prevention involved. Could you please prioritize it and take a look? |
It would be ideal if we could confirm whether this is a legitimate issue or if it only occurs when using the local server. |
Sure @vbelolapotkov , we'll take a look at it. |
@asumaran hey 👋 I think you forgot to send the card testing nonce in the checkout data to the server, which is added to the page when the card testing prevention is enabled, and checked by the server. That might be the cause of it. If you have capacity to solve it by looking to the previous code about how it was sent, feel free to own the issue, otherwise, you'd need to help us set up ECE on our locals :) |
Also FYI, I added a setting to the WCPay dev tools plugin that mimics the card testing prevention flag as activated on the client. You can use that option to test this scenario too. |
@tpaksu I've noticed that the I'll address this for ECEs (and PRBs) as I'm currently handling it. |
The token isn't being added to the product page woocommerce-payments/includes/fraud-prevention/class-fraud-prevention-service.php Lines 89 to 93 in 261a1ec
|
I'll submit the fix as part of #8987 |
Thanks for the confirmation, the digging, and finding the fix @asumaran! Let me know if you need anything. |
Just FYI: The |
Describe the bug
Originally reported by @ricardo in #8937 (comment). A site with the Fraud Prevention Service enabled fails to checkout using the Express Checkout Element.
To Reproduce
card_testing_protection_eligible
is set totrue
Actual behavior
Error message is shown: "We're not able to process this payment. Please refresh the page and try again." on checking out using ECE.
Expected behavior
Payment should finish without issues and no error should be displayed.
The text was updated successfully, but these errors were encountered: