Updated create_order endpoint to use E-Commerce API for order creation and enrollment
This functionality is activated by adding a SKU to a non-honor course mode. When the feature is activated, verified orders will be created by the E-Commerce Service instead of LMS. After payment, the E-Commerce Service will also create the enrollment.
Showing
- lms/djangoapps/commerce/api.py 86 additions, 0 deletionslms/djangoapps/commerce/api.py
- lms/djangoapps/commerce/exceptions.py 21 additions, 0 deletionslms/djangoapps/commerce/exceptions.py
- lms/djangoapps/commerce/tests/__init__.py 73 additions, 0 deletionslms/djangoapps/commerce/tests/__init__.py
- lms/djangoapps/commerce/tests/test_api.py 88 additions, 0 deletionslms/djangoapps/commerce/tests/test_api.py
- lms/djangoapps/commerce/tests/test_views.py 59 additions, 110 deletionslms/djangoapps/commerce/tests/test_views.py
- lms/djangoapps/commerce/views.py 15 additions, 63 deletionslms/djangoapps/commerce/views.py
- lms/djangoapps/verify_student/tests/test_views.py 73 additions, 26 deletionslms/djangoapps/verify_student/tests/test_views.py
- lms/djangoapps/verify_student/views.py 26 additions, 9 deletionslms/djangoapps/verify_student/views.py
Loading
Please register or sign in to comment