Download the PHP package ssplugin/ss-membership without Composer
On this page you can find all versions of the php package ssplugin/ss-membership. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ssplugin/ss-membership
More information about ssplugin/ss-membership
Files in ssplugin/ss-membership
Package ss-membership
Short Description Craft CMS membership with stripe.
License MIT
Informations about the package ss-membership
SsMembership plugin for Craft CMS 4.x
A membership site lets you limit access to your site’s content to only paid users.
SS Craft Membership plugin will easily integrate with Stripe so you can accept membership payments and protect your content from non subscribed users. It will help you to setup membership integration of your site.
To read plugin documentation SsMembership Documentation
Requirements
This plugin requires Craft CMS 4 or later and PHP 8.
Installation
To install the plugin, follow these instructions.
- In the Control Panel, go to Settings → Plugins and click the “Install” button for SsMembership.
SsMembership Overview
It is work with a Craft cms User groups and permissions. You must be create a relevant groups and assign the permissions to each group. i.e. if your website need to setup Super and Premium membership, you need to create User Groups like Super and Premium. Now, create a membership plan and assign user group with it.
Configuring SsMembership
Once you’ve installed the SS Craft Membership plugin. Configure Stripe gateway public and secret keys and save the configuration.
Membership Plan
Membership Plan allow manage user groups for when a user subscribes to a plan. On your Craft CMS Dashboard go to Settings -> Membership Plan
Plugin will automatically create a subscription plan on Stripe Dashboard.
Test mode plans no longer availanle in live mode so that test and live mode membership plans are different.
Using SsMembership
Check permission on twig template, you can use Craft cms core functions to check specific group permission. Here are few examples.
.can()
method is helpful when you need to check specific permission or craft cms section permission.
Twig Templating
Subscribing with User Registration
While user registration, add stripe card payment and membership plan dropdown field. User will automatically subscribed selected plan after successfully register.
User Registration Form with membership field:
Stripe Payment Field:
Membership Plan Field:
Subscribe with logged in User:
We have understood how subcription work with registration But what if user already registered? User can subscribe membership plan after logged in.
Note, if logged in User have already subscribed any of the subcription plan then not able to subscribe other membership plan.
Cancel subscription:
Cancel user's subscription immediately. The customer will not be charged again for the subscription.
Note, however, that any pending invoice items that you’ve created will still be charged for at the end of the period, unless manually deleted. If you’ve set the subscription to cancel at the end of the period, any pending prorations will also be left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations will be removed.
For cancel current subscription of logged in User {% requireLogin %}
Canceled subscription can`t be reactivate again.
Brought to you by ssplugin