See the way Subscriptions & Recurring Payments for Magento 2 extension works.

Guide for Subscriptions & Recurring Payments for Magento 2

Boost sales of regular products using subscription options. Get more recurring purchases with Magento 2 Subscriptions & Recurring Payments extension.

  • Sell regular products on a subscription basis
  • Set initial fees and enhance customers loyalty with free trials
  • Get recurring payments via PayPal and Stripe
  • Send notifications to customers about the changes in their subscription status
  • Let customers manage all subscriptions in a separate tab

Payment Methods Configuration

Configure Integration with PayPal

For a correct performance of the payment integration with PayPal please install “paypal/rest-api-sdk-php” composer package first.

To configure the integration with PayPal, please go to Stores → Configuration → Sales → Payment Methods → PayPal Express Checkout → Configure.

Fill the following fields below with the data from your PayPal business account:

  • Email Associated with PayPal Merchant Account (Optional)
  • API Username
  • API Password
  • API Signature

Sandbox Mode - set ‘Yes’ in the Sandbox Mode field. To get this info, you should navigate to your PayPal developer account, login with your credentials or create a PayPal developer account if you don’t have one.

Enable this solution - set to 'Yes' to enable the PayPal payment method.

Then press ‘Save Config’ button and flush the Magento Cache for a correct display of the configurations on the front.

Merchant Account ID - For this info navigate to Sandbox → Accounts → View/Edit Account.

Copy info from the field Account ID in the tab Account Details and fill in the Merchant Account ID field with it.

To authorize and link your store with the PayPal account please navigate to Subscriptions & Recurring Payments → Configuration → PayPal.

Here you need to fill in Client ID and Client Secret fields. To get the info for these two fields, please navigate to your PayPal developer account, login with your credentials or create a PayPal developer account if you don’t have one.

When you get in, navigate to the My Apps & Credentials tab and click the Create App button.

Name the application and associate the sandbox test account. Click the Create App button.

Thus the App will be created and the administrator can copy the Client ID and Secret from this page.

Paste the copied values into the Client ID and Client Secret fields in PayPal Configuration section and press ‘Save Config’ to enable the Webhook ID generation.

Click ‘Create’ under the Webhook ID field to generate it.

Then navigate to Subscriptions & Recurring Payments → Configuration → General and make PayPal Express Checkout active by selecting it in the list of Supported Payment Gateways. Press ‘Save Config’ and flush the Magento Cache for a correct display of the configurations on the front.

In case you need some help in PayPal payment gateway configuration itself, we recommend visiting the Magento User Guide for PayPal Express Checkout for more details.

Configure Integration with Stripe

As the extension works with Stripe payment method, it demands Stripe TLS of at least v1.2 , HTTPS and stripe/stripe-php library. Please see the details here.

To configure the integration with Stripe, please go to Stores → Configuration → Sales → Payment Methods → Stripe by Amasty.

Enable Stripe - set to Yes to enable the payment method.

Enable Apple Pay and Google Pay – select Yes to activate payments via Apple Pay and Google Pay.

Title - specify the custom name of the Stripe payment to be displayed on the checkout page.

New order status – you can select an order status after payment is captured. There are 2 available order statuses: Processing and Pending.

Define the type of the Payment Action:

  • Authorize - to check a card validation without charging until the order is invoiced and approved.
  • Authorize and Capture - to debit money immediately after order submission.

To get a Publishable Key and a Secret Key, please go to your Stripe account and sign in.

Get your test or live API keys, copy them and paste into the appropriate configuration fields.

For more information, please, visit Stripe documentation.

Save Customer Cards – disable or set to Ask the customer to save customers' card details on Stripe's servers so that they don't have to enter them when purchasing again.

Create your Webhook secret right in the module's backend.

Please note that in case you are using Stipe in Sandbox mode (including our live demo) this mode would allow you to generate only 16 Webhook secrets per the one set of API keys. This limitation is applicable only for the live demo of our product (as it uses Stripe in Sandbox mode), the real product does not impose any limitations.

Display Stripe Logo Next to the Method Title – set to Yes to display Stripe Badge. It helps to increase trust and make your customers feel more secure.

Payment from Applicable Countries - accept payments made via Stripe from All Allowed Countries or from Specific Countries.

Payment from Specific Countries - select the countries for which the Stripe payment method will be allowed.

Make 3D Secure Authentification Mandatory for All Cards That Support It – set to Yes to surely prevent malicious actors from stealing any sensitive information.

Debug Mode - enable this option if you want to track payment processes.

Stripe Email Receipts - set to Yes to let Stripe send email receipts for successful payments and refunds. It works only in Live mode.

To test the module, see this information.

Configure Integration with Cash on Delivery

To configure the integration with Stripe, please go to Stores → Configuration → Sales → Payment Methods → Cash on Delivery

Enabled - set to Yes to activate the extension.

Title - specify the payment method title on the checkout page. Cash On Delivery is set by default.

New Order Status - choose the status of the new order until the payment is completed.

Payment from Applicable Countries - set to All Allowed Countries if you want to offer ‘Cash on Delivery’ payment method for customers from all countries. If not, choose the Specific Countries option in this tab.

Payment from Specific Countries - select the countries for which cash on delivery will be allowed.

Instructions - fill in the guide or conditions for your customers to make a payment or provide them with some additional information about the COD method in your store.

Minimum Order Total - specify the minimum order amount required for the method to be applied.

Maximum Order Total - set the maximum order amount acceptable for cash on delivery payment method.

Sort Order - specify the position of the ‘Cash on Delivery’ in the payment methods list on the checkout page. Here 0 is the first position.

After configuring all the necessary settings, click the Save button in the upper-right corner.

Unlike other payments methods accepted by the Subscriptions and Recurring Payments for Magento 2 extension, the Cash on Delivery method works only with Magento Cron jobs to schedule and generate subscriptions and send emails. If Magento Cron is not configured or configured incorrectly, the extension won't create any subscriptions with the Cash on Delivery payment method.

General Settings

To configure the extension settings, navigate to Stores → Configuration → Amasty Extensions → Subscriptions & Recurring Payments. Expand the General tab.

Supported Payment Gateways - specify the gateway payment methods that will be available at checkout when your customer adds any subscription product to the cart.

Apply Free Shipping to Subscription Products - set to Yes to offer free shipping on subscription products to make it more appealing to your customers and encourage long-lasting relationships with them.

Global Subscription Settings

In this tab you can configure the global subscription terms.

Subscription only - select No to make products available as either regular purchase or subscription. Select Yes if you want to make products subscription only.

Billing Cycle - select the billing cycle according to which the payments will be made. Keep in mind that the moment of purchase (i.e., customer placed an order containing subscription products) is the starting point for all billing cycles.

You can set a custom billing cycle.

Billing Frequency - set the needed custom billing frequency. Billing will be made every N days/weeks/months/years depending on the selected frequency unit.

Billing Frequency Unit - define the interval of time from the end of one billing, or invoice, statement date to the next billing statement date.

Enable Free Trials - enable this option if you want your customers to test your products and services for free prior charging them a normal subscription price.

Number of Trial Days - specify the number of days from the moment of order placement during which your customer will not be charged a subscription fee for using your product.

Charge Initial Fee - choose whether you want to charge your customers initial subscription fee or not. This will be charged only once at the moment of first purchase not affecting future billing cycles.

Initial Fee Type - fee can be either a fixed amount in the base store currency or a percent of the regular price of the product.

Initial Fee Amount - specify the amount of the fee. If there are multiple different subscription products in a single order, initial fee will be calculated as a sum of individual fees.

Offer Discounted Prices to Subscribers - set to Yes to provide customers with discounts and stimulate them to subscribe.

Discount Type - discount can be either a fixed amount in the base store currency or a percent of the regular price of the product.

Discount Amount - the specified amount will be deducted from the regular price of a subscription product.

Limit the Number of Discounted Cycles - with the extension you can choose whether to always apply discount to the amount your customer pays for the subscription or limit the number of billing cycles with discounted pricing.

Number of Discounted Cycles - if you want to limit discounted cycles, set the amount of cycles during which the price will be lower.

Labels & Comments

In this tab you can customize labels to make them more catching or understandable. The labels are displayed next to the radiobutton for adding a product to the cart as a single purchase (displayed on the subscription product page).

Set the label for the Single Purchase Option and the Recurring Purchase Option.

Email Notifications

Adjust this tab if you want to notify your customers upon important events concerning their subscriptions.

Send Emails as - choose the email from which the notifications will be sent.

You can enable the following notifications:

  • When a subscription is purchased;
  • When the trial period ends;
  • When a subscription is canceled.

In the Email Template tabs select the suitable templates for the emails.

Save the configuration.

Subscription products

If you've just installed 'Subscriptions & Recurring Payments' extension or have never configured your subscription products before, please take into consideration that, by default, products are unavailable for subscription and might be properly configured.

To make products available via subscription, go to Admin Panel → Catalog → Products.

Mass Actions

To apply global subscription settings to products, just tick the necessary items and Make Selected Products Available via Subscription in the Actions dropdown menu. Use the same algorithm to make them unavailable via subscriptions.

Use the Filters to find the products you need faster.

Subscription Customization

With the extension it is possible to configure subscription settings for particular products separately.

Find the necessary product and click Edit button.

Go to Subscriptions Settings tab.

In the Available by Subscription field you may apply the global configuration to the product or create a custom one. In case of customization, set all subscription settings manually according to your needs.

See how to configure the options here.

After the changes are made, hit the Save button.

Frontend View

Let customers choose the billing cycle suitable for them. Apply free trials and initial fees to products.

Set custom subscription options for particular products according to your business needs. Provide customers with tempting discounts.

Display all customer's subscription in a separate account tab.

Improve your checkout page with advanced Magento 2 One Step Checkout extension.

Find out how to install the Subscriptions & Recurring Payments extension via Composer.

Rate the user guide
 stars  from 0 votes (Details)
magento_2/subscriptions-recurring-payments.txt · Last modified: 2020/03/23 09:47 by hfedulova