-
Notifications
You must be signed in to change notification settings - Fork 11
["BUG"] The course enrollment API fails after purchasing the course with no-id-professional course mode. #120
Copy link
Copy link
Labels
bugReport of or fix for something that isn't working as intendedReport of or fix for something that isn't working as intendedhelp wantedReady to be picked up by anyone in the communityReady to be picked up by anyone in the community
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugReport of or fix for something that isn't working as intendedReport of or fix for something that isn't working as intendedhelp wantedReady to be picked up by anyone in the communityReady to be picked up by anyone in the community