ecommerce
ecommerce copied to clipboard
intercept enrollment code fulfillment and make it do enterprise coupo…
…n stuff instead.
How to use:
- Find a local enrollment code SKU in your ecommerce service (or create one if none exist).
- Modify the hard-coded enterprise catalog UUIDs to match your local test data.
- Go to http://localhost:18130/basket/add/?sku=YOUR-SKU
- Fill out the form and submit.
- A new Enterprise Customer is created (or existing one, based on the org name provided in the form) automagically.
- A new enterprise coupon for the course and your enterprise will be created, payment/fulfillment should succeed.
- Go visit the enterprise admin portal at http://localhost:1991 and go to the Code Management screen.
- You should now be able to manage vouchers/codes for the coupon that was just created when you checked-out.