WPIntell

Source evidence

Bot Attack Advice

Payment Plugins Braintree For WooCommerce · support · 2026-02-16T16:29:00+00:00

questionsentiment
highseverity
0.74relevance
4replies
Evidence onlycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 1 rows with source links

100.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

0 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
elkrat resolved
I have a multisite installation with new registrations disabled network wide. WooCommerce is set to allow registrations during checkout. Malicious users are beginning the checkout process to create an account, then adding 50 or so new credit cards to validate the numbers. I am thinking I should hook wc_payment_gateway_[gateway_id]_payment_method_added to check if the user at hand already has another payment token, then further check for any orders associated with that ID. If I get a second (or third?) token with no orders, their IP goes into the firewall. Is there a better trick? I don’t have constant signups. It’s a low volume signup with all subscription products. I could check the user registration date and be extremely harsh with the newest users, e.g. no second token without an order, period. Here is how I tracked the user ID, from the WC log file: 2026-02-16T08:46:11+00:00 Notice Could not save payment token jhx7jkw6 for user 4253. Invalid or missing payment token fields. Additional context { "plugin_version": "3.7.0", "gateway": "braintree" } And that gave a PHP error: Uncaught Exception: Invalid payment token. in /usr/share/nginx/example/wp-content/plugins/woocommerce/includes/data-stores/class-wc-payment-token-data-store.php:183 Hi @elkrat Thank you for contacting Payment Plugins. The action wc_payment_gateway_[gateway_id]_payment_method_added that you mentioned is from a different Braintree plugin, not this plugin. Are you perhaps confusing our plugin with another plugin that you’re using on your site? Kind Regards Yes, sorry I apologize! Hi @elkrat No worries. If you decided to try our Braintree plugin, which is the highest rated for WooCommerce, feel free to ask any questions you have. Kind Regards

Comments

4 shown
elkrat 2026-02-16T16:38:00+00:00

Here is how I tracked the user ID, from the WC log file: 2026-02-16T08:46:11+00:00 Notice Could not save payment token jhx7jkw6 for user 4253. Invalid or missing payment token fields. Additional context { "plugin_version": "3.7.0", "gateway": "braintree" } And that gave a PHP error: Uncaught Exception: Invalid payment token. in /usr/share/nginx/example/wp-content/plugins/woocommerce/includes/data-stores/class-wc-payment-token-data-store.php:183

Clayton R 2026-02-16T16:38:00+00:00

Hi @elkrat Thank you for contacting Payment Plugins. The action wc_payment_gateway_[gateway_id]_payment_method_added that you mentioned is from a different Braintree plugin, not this plugin. Are you perhaps confusing our plugin with another plugin that you’re using on your site? Kind Regards

elkrat 2026-02-16T16:46:00+00:00

Yes, sorry I apologize!

Clayton R 2026-02-16T16:50:00+00:00

Hi @elkrat No worries. If you decided to try our Braintree plugin, which is the highest rated for WooCommerce, feel free to ask any questions you have. Kind Regards