DarrachBarneveld / ci-swag

Project 5 for Code Institute - Diploma in Full Stack Software Development (E-commerce Applications)
0 stars 2 forks source link

Bug: Stripe WH Order Creation #75

Closed DarrachBarneveld closed 8 months ago

DarrachBarneveld commented 8 months ago

Bug Description Orders not directly created from form but created from Stripe WH will not have item discounts displayed

Steps to reproduce

  1. Create an order and submit
  2. Disable form submit so order is processed via WH
  3. Review order confirmation

Desired result Stripe will give a correct breakdown of discounts

Unhanded Issue The discounts are not handled as no reference to user.profile.subscription property. Total charge remains the same so issue wont be fixed

DarrachBarneveld commented 8 months ago

Issue handled with item.save and profile discounts applied before lineitem creation