be explicit about the course session ID to use |
||
|---|---|---|
| .. | ||
| invoice | ||
| migrations | ||
| tests | ||
| README.md | ||
| __init__.py | ||
| admin.py | ||
| apps.py | ||
| const.py | ||
| models.py | ||
| serializers.py | ||
| services.py | ||
| urls.py | ||
| views.py | ||
README.md
Setup steps for Production
Shop Product
In the Django shop app, create new products that should be available in the shop:
vv-dePrice 32430 (324_3- -> 324.30 CHF), base 300 CHF + 8.1% MWSt., name & description can be anything.- ONLY if
COURSE_VERSICHERUNGSVERMITTLERIN_IDexists!
- ONLY if
vv-frPrice 32430 (324_3- -> 324.30 CHF), base 300 CHF + 8.1% MWSt., name & description can be anything.- ONLY if
COURSE_VERSICHERUNGSVERMITTLERIN_ID_FRexists!
- ONLY if
vv-itPrice 32430 (324_3- -> 324.30 CHF), base 300 CHF + 8.1% MWSt., name & description can be anything.- ONLY if
COURSE_VERSICHERUNGSVERMITTLERIN_ID_ITexists!
- ONLY if
Datatrans (Payment Provider)
-
Set
DATATRANS_BASIC_AUTH_KEY:- https://admin.sandbox.datatrans.com/MenuDispatch.jsp?main=1&sub=4
echo -n "{merchantid}:{password}" | base64
-
Set
DATATRANS_HMAC_KEY:
For Production:
- Coordinate with datatrans to get production account. -> TBD!
- Set
DATATRANS_BASIC_AUTH_KEYandDATATRANS_HMAC_KEYto the production values (see above).
OAUTH
For Production: Make sure that the following env vars are set:
Azure B2C
- Set
OAUTH_SIGNUP_CLIENT_ID - Set
OAUTH_SIGNUP_CLIENT_SECRET - Set
OAUTH_SIGNUP_SERVER_METADATA_URL(.well-known/openid-configuration) - Set
OAUTH_SIGNUP_TENANT_ID - Set
OAUTH_SIGNUP_REDIRECT_URI(.../sso/logine.g.https://myvbv-stage.iterativ.ch/sso/login)
Keycloak
- Set
OAUTH_SIGNIN_CLIENT_ID - Set
OAUTH_SIGNIN_CLIENT_SECRET - Set
OAUTH_SIGNIN_SERVER_METADATA_URL(.well-known/openid-configuration) - Set
OAUTH_SIGNIN_REDIRECT_URI(.../sso/callbacke.g.https://myvbv-stage.iterativ.ch/sso/callback)
Caprover (VITEx)
- Set
VITE_OAUTH_API_BASE_URLincaprover_deploy.shforprodenvironment.OAUTH_SIGNIN_SERVER_METADATA_URLshould help to find the correct value.- Should be the SSO Prod one from Lernnetz. -> TBD!
send_vv_welcome_email()
- Due to lack of access to Sendgrid, never tested actually sending the email.
Testing Payment Flow
- To get user into state for testing (e.g. test-student1@example.com so that he can buy the course):
- Remove all existing course session users for the user.
- Remove all existing checkout information for the user.
Cleanup
After everything runs fine, we should be able to remove the following deprecated env vars:
IT_OAUTH_TENANT_IDIT_OAUTH_CLIENT_NAMEIT_OAUTH_CLIENT_IDIT_OAUTH_CLIENT_SECRETIT_OAUTH_API_BASE_URLIT_OAUTH_LOCAL_REDIRECT_URIIT_OAUTH_SERVER_METADATA_URLIT_OAUTH_SCOPE