Linux 软件免费装
Banner图

Takeed Refusal Guard for WooCommerce

开发者 anishamdi
更新时间 2026年11月17日 22:32
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce blacklist cash on delivery anti-fraud fake orders

下载

1.0.0 1.1.0

详情介绍:

Every refused or fake cash-on-delivery order costs you shipping both ways. Takeed Refusal Guard is a COD blacklist built from your own orders: it remembers who refused a parcel, and uses that memory as an anti-fraud check when the same person orders again. How it works
  1. Mark an order as Refused at delivery (a new order status, also available as a bulk action in the orders list). You can also choose other existing statuses that should count as a refusal.
  2. The plugin stores the customer's phone number (normalised) and e-mail address in its own table on your site.
  3. At the next checkout, if the phone number or the e-mail has at least the number of refusals you set (default: 1), the plugin applies the action you chose:
  4. Tag only (default): an order note and the order meta _takrg_risk. Nothing is blocked, nothing is hidden. Safe to try on a live shop.
  5. Hide Cash on Delivery for that customer. Other payment methods stay available.
  6. Show a neutral notice asking the customer to choose another payment method.
Safe by design (new in 1.1) What makes it different Also included

安装:

  1. Install and activate WooCommerce, then this plugin.
  2. Go to WooCommerce > Refusal Guard and check the default country and the action.
  3. When a parcel is refused, change the order status to Refused at delivery.

屏幕截图:

  • The "COD risk" column in the orders list.
  • The neutral notice shown at checkout when the action is "Show a notice".

升级注意事项:

1.1.0 Adds Test mode (default for new installations), a safety breaker, an allow-list and an activity log. Existing sites keep their current behaviour. 1.0.0 First release.

常见问题:

Does it block customers?

Only if you choose so, and only cash on delivery. The default action only adds an order note and the meta _takrg_risk, so a wrong match never stops a sale. The other two actions remove or refuse Cash on Delivery for that customer; every other payment method keeps working.

Can it block fake orders?

It targets repeat fake and refused cash-on-delivery orders: once an order is marked as refused, the same phone number or e-mail is recognised on the next order, in any phone format. It is not a general firewall: it does not score IP addresses, devices or card payments.

Is it a blacklist?

Yes, for cash on delivery. The list is filled automatically from refused orders, and you can also add or remove numbers and e-mails by hand or by CSV (import and export are free).

Which customers are recognised?

Same phone number (in any format, see above) or same e-mail address. A person who gives a new e-mail but the same phone number is still recognised.

How does Hide Cash on Delivery work with the block checkout?

Cash on Delivery is removed through the woocommerce_available_payment_gateways filter, which the Store API also uses, and it is refused again when the order is submitted. In the block checkout the customer sees the message when they try to place the order; in the classic checkout the payment method disappears (or the notice appears) as soon as the phone number or the e-mail is entered, through a one-line inline script that loads no file and contacts no server.

A customer cancelled by mistake. How do I fix it?

Change the order out of the counted status and its record is removed. You can also delete a record, or every record of a phone number or e-mail, in the settings page.

Can I import my existing list?

Yes. WooCommerce > Refusal Guard > Import CSV. One row per refusal: phone,email (the header row is optional). Numbers without a country code use the default country. Export gives the same columns plus order, source and date.

Which hooks are available?

  • do_action( 'takrg_signal', $phone, $email, $order_id, 'takeed' ) records a refusal signal from another plugin. The function takrg_record_refusal( $phone, $email, $order_id, $source ) does the same.
  • apply_filters( 'takrg_refusal_count', $count, $phone, $email ) adds signals to the count (for example, Takeed confirmation results).
  • apply_filters( 'takrg_is_risky', $risky, $count, $phone, $email ) overrides the decision.
  • apply_filters( 'takrg_counted_statuses', $statuses ) changes the statuses that count as a refusal.
  • do_action( 'takrg_refusal_recorded', $id, $row ) and do_action( 'takrg_order_tagged', $order, $count ).
There is no hard dependency between this plugin and any other Takeed plugin.

What is the safety breaker?

A circuit breaker against mistakes. If more than half of the checkout attempts of the last hour were restricted (with at least 5 attempts, and one customer counted once), something is wrong, for example a rule that is too wide. The plugin then only tags orders, shows a notice in the admin and sends the administrator an e-mail (through your own mail setup). The restriction comes back only when you press "Turn protection back on". The attempt that trips the breaker is still restricted; from the next checkout on, Cash on Delivery is available again.

What happens if the plugin fails during checkout?

The order goes through. Any error while checking a customer lets the order continue, and the error is written to the activity log.

I update from 1.0. Will my shop change?

No. Sites that already used 1.0 keep the action they chose and stay in Live mode. Only new installations start in Test mode.

Does it send data anywhere?

No. There are no external HTTP calls, no tracking and no analytics.

更新日志:

1.1.0 1.0.0