diff --git a/services/skus/model/model.go b/services/skus/model/model.go index 3b11a065a..76e1ffa56 100644 --- a/services/skus/model/model.go +++ b/services/skus/model/model.go @@ -279,7 +279,7 @@ func (x *OrderItem) IsLeo() bool { return false } - return x.SKU == "brave-leo-premium" + return x.SKU == "brave-leo-premium" || x.SKU == "brave-leo-premium-year" } func (x *OrderItem) StripeItemID() (string, bool) { diff --git a/services/skus/skus.go b/services/skus/skus.go index 9837b9f83..d24e4bbd4 100644 --- a/services/skus/skus.go +++ b/services/skus/skus.go @@ -157,7 +157,7 @@ func skuNameByMobileName(subID string) (string, error) { return "brave-leo-premium-year", nil // iOS Leo Annual. - case "braveleo.yearly", "nightly.braveleo.yearly": + case "braveleo.yearly", "nightly.braveleo.yearly", "braveleo.yearly.2", "braveleo2.yearly": return "brave-leo-premium-year", nil // Android VPN Monthly. diff --git a/services/skus/skus_test.go b/services/skus/skus_test.go index 83146c200..5fcb2016a 100644 --- a/services/skus/skus_test.go +++ b/services/skus/skus_test.go @@ -83,6 +83,18 @@ func TestSKUNameByMobileName(t *testing.T) { exp: tcExpected{sku: "brave-leo-premium-year"}, }, + { + name: "ios_leo_annual_release_new", + given: "braveleo2.yearly", + exp: tcExpected{sku: "brave-leo-premium-year"}, + }, + + { + name: "ios_leo_annual_release_new2", + given: "braveleo.yearly.2", + exp: tcExpected{sku: "brave-leo-premium-year"}, + }, + { name: "android_vpn_monthly_release", given: "brave.vpn.monthly",