Commerce failed to add line item for course

Even though checkout shows that the course is added to the cart, and accepts payment for the course, if you observe the order it's total is $0 and contains no line items. Effectively commerce is failing to grant course access and is robbing the customer. How do I configure commerce to grant a user access to a course, rather than have them pay and nothing happens?