Update how the fraud prevention token is added to the checkout page #8141
Labels
category: core
WC Payments core related issues, where it’s obvious.
component: fraud sift
Issues related to fraud work and Sift integration.
priority: high
The issue/PR is high priority—it affects lots of customers substantially, but not critically.
Description
There are occurrences where the Fraud Prevention Token is not added to the checkout page due to restrictions in the
the_content
filter, making the checkout form fail.p1706826656327619-slack-C03EE4CPPK5 was one of those occurrences, which took a considerable time to understand and debug the real issue.
Suggestions to fix this issue:
wp_footer
would be a better filter to hook into instead ofthe_content
.How to reproduce it
fraud_prevention_service
on your sitewcpay-fraud-prevention-token
wcpay-fraud-prevention-token
Acceptance criteria
Additional context
The text was updated successfully, but these errors were encountered: