mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-07-28 01:57:35 +08:00
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. |
||
|---|---|---|
| .. | ||
| resources/js | ||
| src | ||
| composer.json | ||
| extensions.php | ||
| module.php | ||
| services.php | ||