s2Member Pro is a WordPress membership plugin. Use this integration if you want Kartra to handle the checkout, payments, member lists, and emails for s2Member memberships.
You will need:
- s2Member Pro installed and activated in your WordPress site
- API key from s2Member Pro
- URL to the membership portal provided by s2Member Pro
- URL for the s2Member Pro integration
- A membership ID (level). Recommended: Create a separate integration for each membership level set up in s2Member. This will allow you to sell access to each level independently.
How to integrate s2Member with Kartra
Get s2Member details from WordPress
Log in to WordPress to access the s2Member plugin settings and get the details needed for the integration.
Get the API key:
- Navigate to s2Member Pro > API / Scripting
- Select Pro API for remote operations.
- Copy the secret API key.
NOTE: s2Member and/or WordPress may change their website from what appears in this document, but there should still be an API section with the key information.
Get membership ID(s):
An s2 integration with Kartra connects with only one membership level. To sell or grant access to additional s2 membership levels from Kartra, create separate integration connections for each level.
- Navigate to s2Member > General Options.
- Select Define Membership Levels and Packages.
- Copy the number for the level you want to integrate. Do not include the hash when pasting into Kartra.
- Example: To use Level #0 (Free Subscribers) the membership ID will be 0. Level #1 will be 1. The Kartra integration field accepts numbers only.
Go back to Kartra to complete the configuration.
Create Kartra integration
- Go to Settings > Integrations
- Click + Integration in the top right
- In the Providers window, select s2Member and click Next
- Configure the integration:
- Membership name: Name your integration. This is to help you identify it in your account.
- Tip: Include the membership level ID in the integration name so you can easily select levels if you integrate more than one.
- URL to WordPress integration: Paste the URL for the directory in your website where WordPress is installed.
- API key: Paste the secret API key from s2Member.
- Membership ID: Add the s2Member membership level ID for this integration. (Numbers only, special characters not accepted.)
- On refund / cancellation: Define the automatic action when a customer cancels/refunds a product granting access to this integration.
- Delete user will delete the user
- Downgrade user will set the user to another membership ID of your choice. This option is recommended. You can choose to downgrade canceled members to the free level of your membership.
- Membership name: Name your integration. This is to help you identify it in your account.
- Click Create to finish your s2Member membership integration.
To integrate additional levels from your s2Member membership, click + Integrate to start the integration process again.
NOTE: If you are unable to find the "API Key" on s2Member or have any other issues with collecting the API information, please contact s2Member support. If your s2Member API Key does not work via Kartra, please contact Kartra support.