Mechanic is a development platform for Shopify. :)
Short and simple. :) Upon the fulfillment of an authorized order, this task attempts to capture payment for that order.
Runs when an order is fulfilled.
Short and simple. :) Upon the fulfillment of an authorized order, this task attempts to capture payment for that order.
For expected results, be sure to enable "Manually capture payment for orders" in Shopify, using this guide.
Please note: This task will only capture payment for orders that have the financial status "authorized". You are responsible for ensuring that fulfillment occurs within the order payment's authorization period.
Mechanic is designed to benefit everybody: merchants, customers, developers, agencies, Gurus, everybody.
That’s why we make it easy to configure automation without code, why we make it easy to tweak the underlying code once tasks are installed, and why we publish it all here for everyone to learn from.
{% if event.preview or order.financial_status == "authorized" %} {% action "shopify" %} [ "post", "/admin/orders/{{ order.id }}/transactions.json", { "transaction": { "kind": "capture" } } ] {% endaction %} {% endif %}