Skip to content

Order state automation

Christian Dangl edited this page May 11, 2022 · 3 revisions

In the plugin configuration of Mollie Payments in Shopware 6, you will find a section called Order State Automation. This allows you to automatically set an order state based on a specific payment state.

Order state with a paid transaction

Here you can choose which state the order should get when the order has the payment state 'paid'. You can choose to skip the order state, in this case, the order state will not be set automatically by the MolliePayments plugin. You can also choose between Open, In Progress, Cancelled and Completed.

Order state with a failed transaction

Here you can choose which state the order should get when the order has the payment state 'failed'. You can choose to skip the order state, in this case, the order state will not be set automatically by the MolliePayments plugin. You can also choose between Open, In Progress, Cancelled and Completed.

Order state with a cancelled transaction

Here you can choose which state the order should get when the order has the payment state 'cancelled'. You can choose to skip the order state, in this case, the order state will not be set automatically by the MolliePayments plugin. You can also choose between Open, In Progress, Cancelled and Completed.

Order state with an authorized transaction (v1.3.0 and higher)

Here you can choose which state the order should get when the order has the payment state 'authorized' (e.g. Klarna payments). You can choose to skip the order state, in this case, the order state will not be set automatically by the MolliePayments plugin. You can also choose between Open, In Progress, Cancelled and Completed.

Final Order Status

We heard of timing problems in combination with logistics and shipping plugins. Either through Flow Builder actions or other events, it happened that these plugins and systems updated the order to have the status "done". Afterwards they triggered a shipment in Mollie which unfortunately leads to a webhook "paid" from Mollie. This webhook, and the configured Order State Mapping lead to the order be reopened again and updated to the status "In Progress" (business decision).

This feature helps to avoid that, and support workflows like this. Just lock the final order status to whatever fits your needs. The Mollie plugin will now skip status updates (only order status) if that status is already set for the order.

Only REFUNDS and CHARGEBACKS will still lead to an update.

Clone this wiki locally