Changes proposed in this Pull Request
This modifies the review step in new checkout so that rather than the “Total savings” line item (which is confusing since it represents so many different things), we re-add a “Coupon” line item, which now has a correct amount thanks to D45080-code, and add a “Credits” line item for any credits the account has.
This is one step toward the changes described in #43353 although there are more tasks to be done.
Fixes #43168
Fixes #43353
Testing instructions
- Use an account that already has a plan.
- Add an upgraded plan to your cart and visit checkout. This will create a non-coupon discount for the cart item (a proration).
- Verify that the coupon is not displayed.
- Verify that the credits are not displayed.
- Add a few credits to your account and reload.
- Verify that the credits are displayed.
- Add a coupon to your cart.
- Verify that the coupon is displayed and shows only the discount caused by the coupon, not the proration, and not the credits.
Unfortunately, no screenshots were provided by the developer.