-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Let's make it more readable:
We need to enable users to purchase a subscription using in-app points, (price basic - 500 points, pro - 1000points).
-
Expand the subscription service to include the option to purchase using points.
- Utilize trial periods on Stripe (refer to Stripe documentation) to set up a one-month trial subscription. Add the function of updating to trialing in stripe service
* The update webhook should automatically change the subscription status to 'trailing.' -
On the frontend, add buttons for purchasing a subscription and display the user's status as 'Active (Purchased by Points)' instead of 'Trialing'. Or something like that.
-
In the database of user bonuses add a new type of transaction and specify number of points for each type of subscription. Check if user has enough of balance to complete the transaction.