This section describes setting up & configuring recurring payments with this plugin.
With release 4.0 there's updated version or recurring payments gateway available in payment methods section within admin panel.
With this functionality added, CRON command is required in order to proceed with this version of subscriptions.
# Mark processable subscriptions, so they won't be re-scheduled multiple times
* * * * * /usr/bin/php /path/to/bin/console mollie:subscription:begin-processing
# Process previously marked subscriptions
* * * * * /usr/bin/php /path/to/bin/console mollie:subscription:process
Configuring Recurring (cron) subscriptions has to be configured similarly to "default" Mollie's gateway.
In order to use recurring payments there has to be product (variant) that has to exist within order. In order to configure one's, access any product's variants, and modify it's Recurring settings
And then, edit its settings up to your needs
Subscriptions can be accessed in admin by selecting proper menu
Once accessed, there's grid that shows subscriptions and their states
Each subscription contains list of useful information once browsed.
Here's list of every order "attached" to subscription NOTE: First order may be shared between multiple subscriptions, as it's source of their contents
, every payment, order content's and expected
payment schedule, and it's fulfilled date.
Every active / processing subscription can be paused(and resumed) or canceled
Starting from cart, there's requirement, that recurring and non-recurring cannot exist within one order.
Once order's processed, there will be one subscription each one item (not item-unit) created, as intervals and durations may differ between order's products, and within schedule new order will be created every time, when next payment should be processed. This helps individual refunds or partial subscription pause / cancel.
By default, this plugin comes with labels, that indicate subscription state of product.
However, they may not fit into your template(s). In order to replace them, override of few templates is necesary:
Copy:
vendor/mollie/sylius-plugin/src/Resources/views/Shop/_partial/_recurringBadge.html.twig
intotemplates/SyliusMolliePlugin/Shop/_partial/_recurringBadge.html.twig
Check:
vendor/mollie/sylius-plugin/src/Resources/views/Shop/_partial/_recurringTranslations.html.twig
vendor/mollie/sylius-plugin/src/Resources/views/Shop/Product
vendor/mollie/sylius-plugin/src/Resources/views/Shop/Cart
for more templates to customize.
- Every subscription is auto-canceled once
two
payments returnnegative
status (timed out / failed).