Javascript

Setup

Before we get started, you're going to want to ensure you have successfully installed all required libraries and have initialized them correctly to make successful calls.

pageSetup

You'll also need to ensure that you have setup all your features and packages within the Kana Dashboard. You can see more on these concepts within the Kana Concepts page, and more on how to create features and packages through the following guides.

pageCreate FeaturespageCreate Packages

Creating & Subscribing Users

You can then start thinking about bringing the users of your product into Kana so that they can subscribe to your packages.

pageCreate Users

Using Stripe?

If you integrate with Stripe, we will not only initially import all your users from existing subscriptions, but will also create new users (and subscriptions) when customers sign up to packages through Stripe.

pageSubscribe Users to Packages

Integrating Kana

Afterwards, you'll be ready to integrate Kana into your product to deal with everything related to monetization, pricing and subscriptions.

The following guides will allow you to start integrating some of these vital flows into your product:

pageRecord Feature UsagepageBlock Feature Access (Backend)pageBlock Feature Access (Frontend)

Congratulations 🎉

Once you hit the end of this list, you're likely ready to go!

There may be other flows in your product touching packaging and pricing which Kana needs to integrate with and/or help you achieve. Our API is flexible enough with the given Queries and Mutations available that you should have everything you need to build these out.

We'd love to hear more on what you do end up building out, or if you don't feel you have the resources at your disposal to build these out yet. Let us know!

Last updated