Describe the bug
The course enrollment API fails after purchasing the course with no-id-professional course mode.
To Reproduce
Steps to reproduce the behavior:
- Follow the official document to set up the automatic enrollment generation
- Create a course product with the mode "no-id-professional" on woocommerce and create the same course at studio side.
- Go to the course checkout page and do a normal checkout.
- Now if you check the LMS logs, you will see that API has failed with 400
Expected behavior
The course enrollment record should have been generated with given mode.
Screenshots
Following screenshot is what we receive in the payload. you will notice that we receive the mode as "no id professional". the same is defined in the utils file
But edx is expecting the mode as "no-id-professional" as defined in this class
Also the error log from the woocommerce page:
And due to this miss-match, the enrollment API fails.
Describe the bug
The course enrollment API fails after purchasing the course with no-id-professional course mode.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The course enrollment record should have been generated with given mode.
Screenshots
Following screenshot is what we receive in the payload. you will notice that we receive the mode as "no id professional". the same is defined in the utils file
But edx is expecting the mode as "no-id-professional" as defined in this class
Also the error log from the woocommerce page:
And due to this miss-match, the enrollment API fails.