Magento 2: Set up subscriptions

Understand and set up subscriptions.

Understand subscriptions

Explore how Mollie supports recurring payments for regular billing.

📘

Tip

  • Minimize chargeback risk by clearly communicating the charge amount and frequency to your customers.
  • Ensure customer awareness by sending advance notifications before each payment, for example via email.

Mollie subscriptions module

Mollie supports subscriptions through a dedicated Mollie module that you must install separately to enable subscription features.

Supported payment methods

Customers who buy a subscription from your shop must use a supported payment method to make their initial payment. This authorises future subscription payments as well.

  • Credit/Debit cards: If your customer initially pays with a credit/debit card, all subsequent payments will be by credit/debit card as well.
  • Other payment methods: If your customer initially pays with any other payment method, all subsequent payments will be by SEPA Direct Debit.

Your customers can use these payment methods for the initial subscription payment:

  • Bancontact
  • Belfius pay button
  • Credit/debit cards
  • EPS
  • Giropay
  • iDEAL
  • KBC payment button
  • MyBank
  • PayPal
  • SOFORT bank transfer

Set up subscriptions

In Magento 2, you need to install a special module to use Mollie subscription features:

  1. Connect to your Magento 2 environment, for example using SSH↗.
  2. Navigate to the root directory of your Magento 2 store in the terminal, and install Mollie Subscriptions:
    composer require mollie/magento2-subscriptions
    
  3. Activate the module:
    php bin/magento module:enable Mollie_Subscriptions
    
  4. Deploy the content in your Magento 2 environment, and clean the cache:
    php bin/magento setup:upgrade
    php bin/magento cache:flush
    

Enable subscriptions

After installation, you need to enable subscriptions to offer them in your shop:

  1. Log in to Magento 2.
  2. Go to Stores > Configuration.
  3. Expand the Mollie section in the left sidebar, and select Subscriptions.
  4. In the General section, select Yes from the Enabled drop-down menu.
  5. Select a shipping method from the Shipping method drop-down menu.
  6. Save the changes.

Enable subscription emails

You can send emails to your admins and customers on various subscription-related events, such as pre-payment reminders, cancellation notifications, and errors.

  1. Log in to Magento 2.
  2. Go to Stores > Configuration.
  3. Expand the Mollie section in the left sidebar, and select Subscriptions.
  4. Select Yes from the drop-down menu of the email option that you want to enable.
  5. Save the changes.

Customize subscription emails

Mollie for Magento 2 provides various default templates for subscription-related emails to your admins and customers, such as pre-payment reminders, cancellation notifications, and errors.

To customise a template, follow these steps:

  1. Log in to Magento 2.
  2. Customise the default email template:
    • Go to Marketing > Email templates and select Add new template.
    • Open the Template drop-down menu, scroll tom its Mollie Subscriptions section, and select the relevant subscription email option.
    • Give the new template a name, and edit the template content and styling↗ as required.
    • Save the template.
  3. Enable the email template:
    • Log in to Magento 2.
    • Go to Stores > Configuration.
    • Expand the Mollie section in the left sidebar, and select Subscriptions.
    • If you haven't already enabled the relevant subscription email option, do so by selecting Yes from the relevant drop-down menu.
    • Select your template's name from the drop-down menu that appears when you enable the subscription email option.
    • Save the changes.

Create subscription products

  1. Log in to Magento 2.
  2. Select Catalog > Products.
  3. On the Products page, click the product.
  4. On the product details page, scroll to Mollie and expand the section.
  5. Switch on the Is this a subscription product? toggle.
  6. Configure the subscription in the Subscription configuration pane.
  7. Select Save.