Few things to consider during shopify prorated calculation
Merge Request: https://gitlab.com/powr/powr/-/merge_requests/4362/diffs
1) SCENARIO Customer upgrade from lower plan to higher plan (same billing period, eg Starter monthly to Pro monthly)
WHEN
- Starter 8.99/mo (capped 9.00)
- Pro 14.99/mo (capped 15.00)
THEN Prorated price should be 14.99 - 8.99 = 6/mo and default to 14.99 next mo
2) SCENARIO When customer upgrade from lower plan to higher plan (lower amount to higher amount)
WHEN
Starter 8.99/mo (capped 9.00)
Pro 149.9/year (capped 150.00)
THEN Prorated price should be 149.9 - 8.99 = 140.92 / year and default to 149.9 next year.
3) SCENARIO When customer upgrade from lower plan to higher plan (higher amount to lower amount, eg Yearly Starter to Monthly Pro)
WHEN
- Starter 99.99/year (capped 100.00)
- Pro 14.99/mo (capped 15.00)
THEN We dont allow this, Pilar suggested we simply don’t let them purchase a monthly upgrade if they already have a yearly.