Docs
العربية Get your keys

Integration modes

The script can check the order at the button, or only collect and leave the whole decision to your server.

On this page

Compare the two modes#

Submit checkCollect only
Turned on byDefaultdata-forms="off"
At the order buttonThe script holds the order for a moment and checks itThe script does not touch the button
A refused orderNever leaves the pageReaches your server, which refuses it
Value for sdk_expectformscollect

Do not confuse these with protection modes, which set whether Antiro’s decisions take effect.

Submit check#

This is the default, and the right choice for most stores. The script holds the order for a moment when the shopper presses the button, then lets it continue. A refused order is never sent.

Collect only#

The script leaves the order button alone, and your server decides every order. Use it if your checkout cannot accept a held submit.

Collect only
<script
  src="https://js.antiro.io/v2/antiro.js"
  data-key="pk_xxxxx"
  data-forms="off"
  async></script>

Tell Antiro which mode you use#

Once Antiro knows that your pages run the script, an order that arrives without a reference is treated as suspicious from the very first order. This is what catches bots that post straight to your server. You can say it in two ways:

  • For each order: send sdk_expect with the order check, as forms or collect. Any other value is ignored.
  • For the whole store: choose how the script is installed on the API keys page.

The value sent with an order wins for that order. If you state nothing, Antiro works it out from the orders it receives.

Strict mode#

Strict mode goes one step further: an order that carries no reference at all is refused instead of held for review. A shopper on a page that runs the script always has a reference. Scripts that post orders straight to your server have none.

  • For each order: send sdk_required as true together with sdk_expect. Without sdk_expect it is ignored.
  • WooCommerce: the plugin’s Strict mode setting, on by default since version 1.2.0.

Search by topic, field name or status code.