Skip to content

["BUG"] The course enrollment API fails after purchasing the course with no-id-professional course mode. #120

@shivamtrivedi01

Description

@shivamtrivedi01

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:

  1. Follow the official document to set up the automatic enrollment generation
  2. Create a course product with the mode "no-id-professional" on woocommerce and create the same course at studio side.
  3. Go to the course checkout page and do a normal checkout.
  4. 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

Image

But edx is expecting the mode as "no-id-professional" as defined in this class

Also the error log from the woocommerce page:

Image

And due to this miss-match, the enrollment API fails.

Metadata

Metadata

Assignees

Labels

bugReport of or fix for something that isn't working as intendedhelp wantedReady to be picked up by anyone in the community

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions