Shopware 6 Plugin: Automate workflows involving Mollie

Shopware 6 has a flow builder to automate your processes, which you can use in combination with the Mollie plugin. This guide contains a number of use cases that you can use as examples.

What you need to do in advance

  • To use the Shopware 6 flow builder in combination with the Mollie plugin, ensure you're using Shopware 6 version 6.4.6.0 or later.

  • The flow builder enables you to set up advanced automated workflows to meet your needs. Ensure that you understand how Mollie works together with the flow builder↗ before creating automations.

  • To avoid duplicate actions that result in unexpected flows, turn off settings in the Mollie plugin that can conflict with an automation. For example, if you use a flow that automatically marks orders as shipped, turn off automatic shipping notification.

Ship orders automatically

You can create a flow that automatically notifies Mollie when orders are shipped, so that the payment is settled on your Mollie account.

Tip

You can also enable automatic shipping in the Mollie configuration settings under Extensions > My extensions > [click Configure in the options menu] > Order Management, for example if your sales volume does not make it worthwhile to set up Flow Builder.

  1. Log in to Shopware 6.

  2. Go to icon-shopware-settings.png Settings > Flow builder.

  3. Select Add flow.

  4. Fill out the General information form:

    1. Enter a descriptive name for the flow, for example, Automatic shipping.

    2. Optional: Enter a description.

    3. Optional: Assign a priority↗.

    4. Turn on the Active toggle.

  5. Go to the Flow tab to create the automation:

    1. Select State enter > Order delivery > State > Shipped from the Trigger drop-down menu.

    2. Open Add action (then) and select Ship order (Mollie).

    3. In the notification, select Save.

  6. To create the flow, select Save.

Tag Mollie webhooks

You can create a flow that helps you to understand whether your shop successfully receives Mollie webhooks. This is useful when troubleshooting, to understand whether payments are processing properly.

  1. Log in to Shopware 6.

  2. Go to icon-shopware-settings.png Settings > Flow builder.

  3. Select Add flow.

  4. Fill out the General information form:

    • Enter a descriptive name for the flow, for example, Tag Mollie webhooks.

  5. Optional: Enter a description.

  6. Optional: Assign a priority↗.

  7. Turn on the Active toggle.

  8. Go to the Flow tab to create the automation:

    1. Select Mollie > Webhook received > All from the Trigger drop-down menu.

    2. Open Add action (then) and select Add tag.

    3. Enter a tag, such as mollie_webhook_received, or select an existing tag and click Save action.

  9. To create the flow, select Save.

Send emails for chargebacks

All Mollie statuses can have a corresponding trigger. This means that you can set up a flow that sends you an email when your shop receives a chargeback.

  1. Log in to Shopware 6.

  2. Go to icon-shopware-settings.png Settings > Flow builder.

  3. Select Add flow.

  4. Fill out the General information form:

    • Enter a descriptive name for the flow, for example, Chargeback notification.

  5. Optional: Enter a description.

  6. Optional: Assign a priority↗.

  7. Turn on the Active toggle.

  8. Go to the Flow tab to create the automation:

    1. Select Mollie > Webhook received > Status > Chargeback from the Trigger drop-down menu.

    2. Open Add action (then) and select Send email.

    3. Select a recipient, email template, and attached documents, and click Add action.

  9. To create the flow, select Save.

Give full refunds automatically

Mollie Plugin for Shopware 6 comes with a refund manager that you can use to issue your customers a full or partial refund. Using the flow builder, you can automate full refunds based on certain conditions.

  1. Log in to Shopware 6.

  2. Go to icon-shopware-settings.png Settings > Flow builder.

  3. Select Add flow.

  4. Fill out the General information form:

    • Enter a descriptive name for the flow, for example, Automatic full refund.

  5. Optional: Enter a description.

  6. Optional: Assign a priority↗.

  7. Turn on the Active toggle.

  8. Go to the Flow tab to create the automation:

    1. Select State enter > Order transaction > State > Refunded from the Trigger drop-down menu.

    2. Optional: Select Add condition (if) to further refine the trigger. For example, to only automate full refunds for orders under a certain amount.

    3. Select Add action (then) and then Refund order (Mollie).

    4. In the notification, click Save.

  9. To create the flow, select Save.

Send subscription reminders

Mollie Plugin for Shopware 6 lets you set up subscriptions using Shopware 6 Flow Builder. In Flow Builder, you can create triggers to send subscription reminders automatically.

  • Started: Triggers a flow as soon as a subscription starts.

  • Renewal reminder: Triggers a flow based on the reminder period setting in the plugin.

  • Cancelled: Triggers a flow when a customer cancels their subscription.

  • Ended: Triggers a flow when the last instalment of a subscription took place, based on the cadence defined in the subscription product.

You can use the Renewal reminder trigger to automatically send customers a reminder about their upcoming subscription payment.

  1. Log in to Shopware 6.

  2. Go to icon-shopware-settings.png Settings > Flow builder.

  3. Select Add flow.

  4. Fill out the General information form:

    • Enter a descriptive name for the flow, for example, Subscription reminder email.

  5. Optional: Enter a description.

  6. Optional: Assign a priority↗.

  7. Turn on the Active toggle.

  8. Go to the Flow tab to create the automation:

    1. Select Mollie > Subscription > Renewal reminder from the Trigger drop-down menu.

    2. Open Add action (then) and select Send email.

    3. Select a recipient, email template, and attached documents, and click Add action.

  9. To create the flow, select Save.