Subscribe Users Manually
If you want to subscribe users to packages without automatically doing so through a billing provider, you will need to manually do so.
Prerequisites
You will need to have details on:
-
The package(s) the user will subscribe
-
The user who is going to be subscribed to the package
If neither the user nor package exist yet in Kana, then you should create these first:
Once these are created, you will need to ensure you know the id
of both.
Code Sample
Basic
Example
Next Steps
Congratulations 🎉 You’ve now successfully redirected a user to subscribe to Kana packages through Stripe.
Upon successful payment, this user will be subscribed to the package(s) and will have access to the features within. You can now implement checks to confirm they should have access to these features (either in your frontend and/or backend) and record usage of these features - which is even more necessary when they are consumable features whereby a customer is provisioned a certain amount.