Ecommerce Workflows
E-Commerce Service Request Sequence for a Free Product:
User creates an order via the commerce endpoint in the LMS
The commerce endpoint checks embargo rules
The commerce endpoint creates a new order by calling the E-Commerce order endpoint
The E-Commerce service’s fulfillment API will call to the LMS’s enrollment API
Finally the E-Commerce order endpoint returns to the LMS commerce endpoint
The LMS commerce endpoint returns to the user.
E-Commerce Service Request Sequence for a Paid Product:
User requests a paid product via the LMS commerce endpoint
Check embargo rules on the LMS
Create a new order via the E-Commerce service’s order endpoint
Order endpoint gets payment processor attributes, sets the order to ‘being processed’
Order with payment processor attributes is returned to the LMS commerce endpoint
Order returned to user, directed to payment processor (CyberSource)
CyberSource indicates an order has been paid to the E-Commerce order endpoint
E-Commerce order endpoint uses fulfillment API to call the LMS enrollment API
Order is ‘Completed’ once fulfillment is complete.
- User is redirected to receipt page for paid and fulfilled order.