You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,13 @@
10
10
- Check the name field inside each package's package.json to confirm the right name—skip the top-level one.
11
11
- While working with forms, always use zod and react-hook-form to validate the form. Take reference implementation from `apps/web/components/admin/settings/sso/new.tsx`.
12
12
13
+
## Documentation tips
14
+
15
+
- We manage product's documentation in `apps/docs`.
16
+
- When working on a new feature or changing an existing feature significantly, see if documenation should be updated.
17
+
- No need to update documentation while doing bug fixes and refactors.
18
+
- If browser tool is available, see if you can automatically take revelant screenshots and include it in the documentation.
19
+
13
20
## Testing instructions
14
21
15
22
- Always add or update test when introducing changes to `apps/web/graphql` folder, even if nobody asked.
10. That's it! Your Razorpay configuration is complete, and you are ready to receive payments.
60
60
61
-
## Lemon squeezy setup
61
+
## Lemon Squeezy setup
62
62
63
-
> Lemon Squeezy does not support creating custom products on the fly. Hence, we have built around the restrictions laid down by Lemon Squeezy. That's why we are calling our integration experimental. If something does not work, reach out to us.
63
+
> Lemon Squeezy does not support creating custom products on the fly. Hence, we have built around the restrictions laid down by Lemon Squeezy. That's why we call our integration experimental. If something does not work, reach out to us.
64
64
65
65
1. Sign up for an account on Lemon Squeezy and get your business approved (or use a test account).
66
66
2. In the Lemon Squeezy dashboard, go to `Products` and click on the `New product` button to create a generic product.
@@ -78,14 +78,14 @@ CourseLit offers integrations with the following payment platforms:
78
78
4. The following screenshot shows how to select a variant's pricing.
1.**Currency**: This will be visible throughout your school but won't affect Lemon Squeezy checkouts, as Lemon Squeezy does not allow overriding it via custom checkout.
85
85
2.**Payment method**: Select Lemon Squeezy.
86
86
3.**Lemon Squeezy Store ID**: In the Lemon Squeezy dashboard, go to `Settings > Stores` as shown below. Copy and paste this ID into the CourseLit settings.
87
87

88
-
4.**One-time variant ID**: In the Lemon Squeezy dashboard, go to `Products` and click on the product you configured in the steps above. In the slider popup, scroll down to the `Variants` section, click on the triple dots menu of the one-time variant, and `Copy ID`. Paste this ID into the CourseLit settings.
88
+
4.**One-time variant ID**: In the Lemon Squeezy dashboard, go to `Products` and click on the product you configured in the steps above. In the slider popup, scroll down to the `Variants` section, click the three-dot menu for the one-time variant, and then click`Copy ID`. Paste this ID into the CourseLit settings.
89
89
5.**Subscription (Monthly) variant ID**: Do the same as #4.
90
90
6.**Subscription (Yearly) variant ID**: Do the same as #4.
91
91
7.**Lemon Squeezy Key**: In the Lemon Squeezy dashboard, go to `Settings > API` and click on the `+` icon to generate a new key. Paste this key into the CourseLit settings.
@@ -107,9 +107,23 @@ CourseLit offers integrations with the following payment platforms:
107
107
108
108
9. That's it! Your Lemon Squeezy configuration is complete, and you are ready to receive payments.
109
109
110
+
## Reset payment method
111
+
112
+
If you want to stop using the currently selected payment platform, go to `Settings > Payment` and click the reset icon next to the `Payment Method` dropdown.
113
+
114
+
- This sets the payment method to `None`.
115
+
- This does **not** delete existing gateway credentials (keys/secrets) from your settings.
116
+
- You can pick another payment method later and save the settings again.
> After reset, all paid plans of all products will fail at checkout with the error `Payment configuration is invalid`. Free plans will keep on working..
121
+
122
+

123
+
110
124
## Looking for developer docs?
111
125
112
-
We have created a detailed documentation for understanding the payment flow in CourseLit. Check it out [here]().
126
+
We have created detailed documentation to help you understand the payment flow in CourseLit. Check it out [here]().
0 commit comments