Added commerce/purchase endpoint
This new endpoint is intended to replace enrollment API call used on the login+registration page. Instead of directly enrolling students, the view will contact the external e-commerce API (Oscar) to create a new order. Oscar will be responsible for completing the order and enrolling the student. This behavior will only apply to course modes with associated SKUs. All other course mode enrollments will be processed directly by LMS.
Showing
- lms/djangoapps/commerce/__init__.py 1 addition, 0 deletionslms/djangoapps/commerce/__init__.py
- lms/djangoapps/commerce/constants.py 21 additions, 0 deletionslms/djangoapps/commerce/constants.py
- lms/djangoapps/commerce/http.py 21 additions, 0 deletionslms/djangoapps/commerce/http.py
- lms/djangoapps/commerce/models.py 3 additions, 0 deletionslms/djangoapps/commerce/models.py
- lms/djangoapps/commerce/tests.py 247 additions, 0 deletionslms/djangoapps/commerce/tests.py
- lms/djangoapps/commerce/urls.py 12 additions, 0 deletionslms/djangoapps/commerce/urls.py
- lms/djangoapps/commerce/views.py 159 additions, 0 deletionslms/djangoapps/commerce/views.py
- lms/djangoapps/edxnotes/tests.py 1 addition, 1 deletionlms/djangoapps/edxnotes/tests.py
- lms/envs/common.py 8 additions, 1 deletionlms/envs/common.py
- lms/urls.py 1 addition, 0 deletionslms/urls.py
- requirements/edx/base.txt 1 addition, 0 deletionsrequirements/edx/base.txt
- requirements/edx/github.txt 1 addition, 1 deletionrequirements/edx/github.txt
lms/djangoapps/commerce/__init__.py
0 → 100644
lms/djangoapps/commerce/constants.py
0 → 100644
lms/djangoapps/commerce/http.py
0 → 100644
lms/djangoapps/commerce/models.py
0 → 100644
lms/djangoapps/commerce/tests.py
0 → 100644
lms/djangoapps/commerce/urls.py
0 → 100644
lms/djangoapps/commerce/views.py
0 → 100644
Please register or sign in to comment