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: README.md
+9-27Lines changed: 9 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,7 @@ These are important to make sure links work, but also to handle CORS in the brow
120
120
### System tests/integration tests that requires a running installation
121
121
122
122
Systests are written in python and the sources for the systests are in the api/src/systest directory (because it shares a lot of code with the api unittests). There are
123
-
tests using the api as well as selenium tests. Those tests are also run in travis.
123
+
tests using the api as well as selenium tests. Those tests are also run in Github actions.
124
124
125
125
You can run the tests in test containers using a one off db with:
126
126
@@ -154,7 +154,7 @@ If you for some reason want to remove the existing database and start from scrat
154
154
make clean-nuke
155
155
```
156
156
157
-
_Warning: this will completely wipe out all your makeradmin data!_
157
+
⚠️ _Warning: this will completely wipe out all your makeradmin data!_
158
158
159
159
After this you can run `make firstrun` again to set things up again.
160
160
@@ -184,36 +184,18 @@ These subscriptions will automatically be turned into makeradmin products so tha
184
184
185
185
Note: You should _not_ modify these products in makeradmin. They will be reset whenever the docker container restarts anyway (when the registration page is visited).
186
186
187
-
#### Needed Stripe configuration
187
+
#### Required Stripe configuration
188
188
189
-
The configuration needed on stripe is:
190
-
191
-
- Create a **product** for base membership. Add the metadata "subscription_type"="membership" to the **product** item
192
-
- Add a yearly **price**, and add the metadata "price_type"="recurring" to the **price** item
193
-
- Create a **product** for makerspace access. Add the metadata "subscription_type"="labaccess" to the **product** item
194
-
- Add a monthly price, and add the metadata "price_type"="recurring" to the **price** item
195
-
- Add a **price** for N months, where N is the binding period as specified in `stripe_subscriptions.py->BINDING_PERIOD`. The price should be N times the recurring price. Add the metadata "price_type"="binding_period"
196
-
- Create a **coupon** for low income discount. It should be with percentage discount. Add the metadata "makerspace_price_level" = "low_income_discount"
197
-
198
-
You can achieve all of this using the Stripe CLI:
189
+
Run the following script to create the required Stripe products. _You should only run it once._ But if anything goes wrong, you can modify the products from the Stripe dashboard.
If you try to access any page which needs these products (e.g. the registration page, or the member page), makeradmin will fetch them from stripe and do a bunch of validation checks.
198
+
If you try to access any page which needs these products (e.g. the registration page, or the member page), makeradmin will fetch them from stripe and do a bunch of validation checks on them.
0 commit comments