You will need first to configure the Stripe Checkout payment gateway in order to use the Subscriptions feature.
Please follow the Stripe checkout configuration guide by clicking here
If you are using version older then 2.4.0, you will need to manually configure your webhook, see below, otherwise continue with the guide below.
If you haven’t created your products and billing plans, you should create via the Stripe Dashboard, Perfex CRM will fetch the billing plans directly from Stripe and will display them while creating/editing subscription.
There is no option to add billing plans via Perfex CRM admin area, you should always add the billing plans via Stripe Dashboard.
There are 8 subscription statuses in Perfex CRM, 5 are the default Stripe subscription statuses and one additional status is added Future.
You can read the lifecycle for subscriptions and statuses at by clicking here
Future – The additional Perfex CRM status Future means that the customer subscribed but the first billing date is in future, as an example if the customer subscribes on 2018-05-18 and you configured First Billing Date to be 2018-05-25, the subscription is active but the customer will be billed at the future date.
In order to create new subscriptions, from the main menu click Subscriptions then New Subscription.
Billing Plan
Select billing plans for this subscription, the billing plans will be fetched from your Stripe account.
Quantity
Configure quantity if it’s necessary, otherwise leave it to 1
First Billing Date
This is the first billing date field, leave blank to use the date when the customer is subscribed to the subscription. This field must be a future date, if you select a date and the date is passed but the customer is not yet subscribed, the date when the customer will subscribe will be used.
Note that Stripe does not support the creation of subscriptions in past dates.
Subscription Name
Add subscription name, shown to the customer too, in most cases this will be your product name.
Description
You can add an additional description for this subscription, also visible to the customer.
Customer
Select customer for this subscription.
Currency
The currency will be auto-selected based on base currency or customer currency, you can’t manually change the currency, more info about currencies can be found by clicking here
This means that you can’t have currency EUR and select billing plan configured in Stripe with USD currency.
Tax
You can select tax for the subscription.
The taxes are fetched directly from Stripe, if you haven’t configured your taxes in Stripe, you should do this via Stripe dashboard by navigating to Billing->Tax Rates
Terms and Conditions (from v.2.40)
You can also add custom terms and conditions for the subscription, the terms and conditions will be shown at the bottom of the subscription preview area just before the customer subscribes to the subscription
After you configure the subscription successfully, you may want to send the subscription to the customer, note that the subscriptions in Perfex CRM are related to the primary contact of the customer.
To send the subscription to the primary contact you can click on the top left email envelope button, additionally, if you want to view how the subscription will look, click on View Subscription button.
You may want to take a look at Setup->Email Templates, to adjust the subscriptions email templates.
If you want to show or hide subscriptions in customers area, you can navigate to Setup->Settings->Subscriptions and set Show subscriptions in customers area to Yes.
In order customer to subscribe to a subscription, you must send the subscription to the customer primary contact and include the subscription link in the email via the built-in email feature for subscription or send the subscription link manually.
After the customer access the subscription he/she can review the subscription and subscribe by clicking on the subscribe button.
To get familiar with canceling the subscription, please read more the official Stripe documentation by clicking here
Canceling from the admin area
If you want to cancel subscription directly from the admin area, you can open the subscription and click on the cancel button, you will be able to see 2 options:
If you click Cancel, the subscription will be canceled immediately, if you click Cancel at the end of billing period, the subscription will be canceled based on the end billing period and also, in this case, you can reactive the subscription, but if you cancel it immediately, there is no option to reactivate.
Cancelling from customers area.
The primary contact also can cancel the subscription via the customers area, the options are identical like in the admin area.
Perfex CRM will store the Stripe customer id in the database for future payments.
Credit card token is token provided by Stripe related to the credit card that subscribed to the subscription, Perfex CRM does not store the credit card number in the database, the credit card token and last 4 digits are fetched directly from Stripe servers via API.
The primary contact can update the credit card anytime he/she want by logging into the customers area and navigating from the top Profile menu -> Credit Card.
Sometimes your customers need to change the card info that they have on record with your business, whether that’s just to swap in a preferred card, or because the card issuer sent a replacement. Stripe takes care of updating expiring cards for you, and also attempts to update saved card details when a customer’s physical card is replaced, but in rare cases, if Stripe is unable to update the card details automatically, the contact must update the credit card manually via the customers area.
Reusing the credit card token
The credit card token for this customer will be used or future subscription too, as example once the customer subscribe to the subscription, in Stripe, Perfex CRM will create customer and this credit card token will be linked to this customer, also the customer id from Stripe will be stored in Perfex CRM database for future payments.
The next time you create a subscription for this customer, the customer won’t need to enter his credit card details again, he/she can just click a button and will be subscribed in no time.
If you want to test the subscriptions, you need to configure Stripe testing keys and read the following guide: https://stripe.com/docs/testing
In this guide, you can get familiar with how the testing works and also there is a list of test credit cards.
Also, before switching to production mode, while testing, if you subscribed to any test subscription, make sure to delete those subscriptions from Perfex CRM admin area.
While you are in Setup->Settings->Payment Gateways->Stripe Checkout, you will need to configure the webhook for Stripe Subscriptions.
Each installation will have unique webhook protection key, you will able to see yours in the Stripe Checkout Webhook Key field
In Stripe Dashboard navigate to Developers->Web hooks and click add a new endpoint.
The webhook URL will be like:
Replace [WEBHOOK_KEY] with your actual webhook key.
Perfex CRM will generate a unique key for each installation, you can either use this key or manually add any key in alphanumeric you want, in case you decide to change the webhook key and you already have configured the webhook in Stripe, you will need to update the webhook key in Stripe dashboard too.
Test your webhook
Once you configure the webhook via Stripe dashboard, click on the configured webhook URL and click on the top right button Send test webhook then a popup modal will be shown, just click on the bottom right button Send test webhook
Keep in mind that the “Send test webhook” button is only available when you have toggled to view test data, once you test the webhook URL while test data is toggled on, switch off test data and configure the same webhook URL in your live account.
If the webhook is configured properly at the bottom you should see this response: