Go to the Subscription Plans page and edit the plan (or add a new one) you want to set as the recurring one.
Recurring payment for such plan will be performed every X days, defined by the standard "Expiration time" parameter (available in the "Params" tab).
Two payment plugins currently support the Recurring Payments option: PayPal and DotPay - each plugin works a bit differently.
PayPal plugin
During the first payment for the subscription, the user agrees that the payment will be collected from the user every X days (depending on the settings in a given plan) by the PayPal processor.
After the first payment, subsequent payments will be initiated automatically on the PayPal site
After receiving the PayPal server's responses about the completed payment, the expiration date will be extended by the specified number of days.
The user may only cancel an active subscription in his PayPal account.
DotPay
For the DJ-Classifieds DotPay payment plugin, each recurring payment is initiated on the seller's website. Therefore, in this case, it is necessary to define a Cron task on the server for correct operation.
The payment plugin has a new "Recurring payments" tab to set all the required fields.
One of them is "Cron job url," where the site’s admin has to add the link.
The user's options for unsubscribing (Dotpay payments) can be turned off in the Plans plugin.
Cancel recurring payments
To allow users to cancel recurring payments:
- Open your Joomla control panel.
- Navigate to the plugins and find the "DJ-Classifieds - Subscriptions Plans" on the list.
- Open the plugin and go to the "Recurring" tab.
The option "Allow user cancel" has to be set as "Yes"