Chargebee provides a variety of options for your customers to help manage their accounts. Apart from offering a pre-built customer portal, Chargebee also provides the following options if you would require a self-service portal for your customers:
If you have your own self service portal and would want to just use Chargebee's Authentication to sign in a customer follow the steps here.
Chargebee provides a pre-built customer portal with in-built authentication. You could get started with the default portal right away, with a few tweaks to suit your business needs. This option is discussed in detail here.
Let us assume customers already log into your website to access your application. Now, to manage their subscriptions, you wouldn't want them to sign in again to access Chargebee's customer portal.
In such cases, you can redirect customers directly to Chargebee's Portal using the API. This is referred to as SSO - Single Sign On.
Follow these steps to support portal access via SSO:
If you would want to build additional features on top of Chargebee's pre-built customer portal, we have an open source code which can be forked.
Chargebee allows you to integrate your custom self-service portal by building user authentication on top of Chargebee. If you would want to allow access to parts of your website only to subscribers (like a paywall), you can integrate Chargebee's authentication without having to handle it from your end.
When customers are led to your custom self-service portal from your website, redirect them to the Login URL: https://yourdomain.chargebeeportal.com/portal/login.
The following parameters should be passed along with the Login URL:
The domain name used in the Return/Cancel URL should be added as a 'Allow-list Domain' in Chargebee. Add just the domain name in Chargebee and not the entire URL: E.g. yourdomain.com.
Upon successful authentication, a portal session is created for the user and Chargebee redirects the user to the return_url along with the following parameters:
With the auth_session_id & auth_session_token parameters, using Activate a Portal Session API , validate the session details and create a session for that user in your website.