Once this feature is enabled, the app admin can create subscription plans for groups and manage access to the content inside their app. This allows app admins to charge the app users/customers a recurring fee to access their app or its services.
A recurring fee can be set up to charge the app users on a Daily, Weekly, Monthly, Every 3 Months, Every 6 Months, or Annually. You can also set up a Free trial period for any subscription group so the app users can use the services before buying the subscription.
To enable Subscription Manager in your app, please follow the steps given below:
Step 1: Login to your Beezer Dashboard and navigate to the Member Login section. Here, you will find a section called Groups and Subscriptions.
- To activate, use the toggle button next to the desired option.
- To accept payments, you need to set up your Stripe account. Please visit this link to signup/register with Stripe. Once you set up your Stripe account, you'll have to generate Stripe API Keys.
To generate the Stripe API Keys (Secret Key and Publishable Key) please follow the steps give below:
STEP 1: Log in to your Stripe dashboard and click on the Developers.
STEP 2: Go to API keys on the left-hand side menu.
STEP 4: Now click on Reveal live key token
Now for your Beezer App to communicate with Stripe when an "Event" occurs, like a user subscribing, or renewing their subscription, we will need to set up such events in Stripe for the Group Subscription to work seamlessly.
- Go to the stripe dashboard
- Click on Developer settings
- You will find Webhooks in the left panel
- Click on Add Endpoint
- Add this URL https://api.beezer.com/1.0/payments/stripe_member_webhooks
- Add these events one by one
- invoice.created
- invoice.payment_succeeded
- invoice.payment_failed
- customer.subscription.created
- customer.subscription.updated
- customer.subscription.deleted
STEP 7: After configuring Stripe, you can now create a Subscription plan in the "Groups & Subscription" section:
- In the Group section, you can create plans by clicking on which is on the upper right-hand side:
- To activate a Subscription plan, use the toggle button next to the desired option.
- You can add/update the following options while creating your Subscription plan:
- Plan Title/Name
- Logo/Image for your plan
- Description
- Price
- Currency
- Billing Cycle - One time or Recurring
-
Billing Period - options available are:
- Daily
- Weekly
- Monthly
- Every 3 months
- Every 6 months
- Yearly
- Free Trial (Toggle button to enable it and enter number of the days you would like to offer your exclusive content on a free trial)
- Add New Feature item - You can add key features of the plan which will be displayed with the plan.
- Once a subscription is created, one additional menu will appear on the Member login section of your Beezer dashboard:
-
Transaction History
-
STEP 8: Now that the Subscription Group is created, you can add the pages that contain the exclusive content of your app to this group.
The newly created Subscription Group will appear in the Groups and Subscriptions section. To add the pages that you want only the members of this group to see, simply click on the subscription group and a dialogue box will appear. Scroll down until you see the section that allows you to select the pages that you want to make exclusive for this group. Once the pages are selected, click on Save and then Publish your app for the changes to take effect. Image below for reference:
-
To display subscription plans or restrict access on your users' device, you'll have to change the page layout from the Member Login section of your Beezer dashboard. You can add Header and Sub Header for that page. You can also redirect them to your app page or other webpage by adding a button.
To hide your existing Subscription plan from your app users, you must enable the toggle "Change subscription plan visibility to Hidden".
When your app users view your app on their mobile device, they will now be able to see a new option in the three dot options menu called "Subscriptions". This section will allow your app users to check their subscription details and history.
Updating Stripe API Keys in the Beezer platform
When updating/replacing the Stripe API keys with new ones in the platform, it's crucial to be aware that the new Stripe API keys will not work for plans that are already in use with the old Stripe API keys.
If you try to add/remove pages to already existing Subscription Plans, it will give the below error:
How to Enable the "Change Payment Method" Feature in the app.
Step 1: Navigate to Member Login > Settings
In the appshell, go to the Member Login section and then select Settings.
Step 2: Find and enable the toggle for "Add new payment method (for app users)".
Step 3: Follow the instructions provided to generate the Stripe customer portal URL.
Step 4: Once you generate the Stripe customer portal URL, paste it into the field labeled 'Add new payment method (for app users)'.
Step 5: After making these changes, publish the app.
Step 6: In the appshell, under the user's profile, there will now be a button in the Subscription section where users can update their billing details.