woocommerce-paypal-payments/modules/ppcp-fraud-protection
Narek Zakarian fd9eb78633
fix(fraud-protection): also enqueue reCAPTCHA when a protected gateway is available regardless of smart-button location
should_enqueue_for_current_location() only checked the merchant's Smart Button Location
setting, but that setting solely controls the wallet button. ACDC, AXO, and the card
button gateway are independent WC_Payment_Gateway entries that can be selectable at
checkout (or the My Account "Add payment method" page) even when the wallet button is
disabled for that location — and reCAPTCHA protects exactly those gateways via
$payment_methods. Add has_protected_gateway_on_current_page(), checking WC's own
available-gateways list against the protected set, and OR it into the enqueue decision
so reCAPTCHA isn't skipped while ACDC/AXO/card-button remain reachable.
2026-07-22 12:24:40 +04:00
..
resources/js Cleanup js div creation 2025-10-30 20:20:18 +02:00
src fix(fraud-protection): also enqueue reCAPTCHA when a protected gateway is available regardless of smart-button location 2026-07-22 12:24:40 +04:00
composer.json Add fraud protection module 2025-10-16 10:12:36 +03:00
extensions.php Delete DisplayRule.php & DisplayManager.php and move WcInboxNotes and WcTasks one level up 2026-01-20 14:36:23 +01:00
module.php Add fraud protection module 2025-10-16 10:12:36 +03:00
services.php fix(fraud-protection): scope reCAPTCHA script enqueue to the current page's smart button location 2026-07-21 17:23:15 +04:00