From e02377509c99288d39167b0eec50dfcd2ae1412d Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Tue, 19 Jan 2021 10:36:02 +0200 Subject: [PATCH] Add 10m, 20m plan --- lib/plausible/billing/plans.ex | 8 +- .../templates/billing/_plan_option.html.eex | 7 ++ .../templates/billing/change_plan.html.eex | 90 +++++------------- .../templates/billing/upgrade.html.eex | 92 ++++++------------- 4 files changed, 64 insertions(+), 133 deletions(-) create mode 100644 lib/plausible_web/templates/billing/_plan_option.html.eex diff --git a/lib/plausible/billing/plans.ex b/lib/plausible/billing/plans.ex index d43e3dd36..ea5765e59 100644 --- a/lib/plausible/billing/plans.ex +++ b/lib/plausible/billing/plans.ex @@ -7,7 +7,9 @@ defmodule Plausible.Billing.Plans do "500k": %{product_id: "597487", due_now: "$27"}, "1m": %{product_id: "597642", due_now: "$48"}, "2m": %{product_id: "597309", due_now: "$69"}, - "5m": %{product_id: "597311", due_now: "$99"} + "5m": %{product_id: "597311", due_now: "$99"}, + "10m": %{product_id: "642352", due_now: "$150"}, + "20m": %{product_id: "642355", due_now: "$225"} }, yearly: %{ "10k": %{product_id: "572810", due_now: "$48"}, @@ -16,7 +18,9 @@ defmodule Plausible.Billing.Plans do "500k": %{product_id: "597488", due_now: "$216"}, "1m": %{product_id: "597643", due_now: "$384"}, "2m": %{product_id: "597310", due_now: "$552"}, - "5m": %{product_id: "597312", due_now: "$792"} + "5m": %{product_id: "597312", due_now: "$792"}, + "10m": %{product_id: "642354", due_now: "$1200"}, + "20m": %{product_id: "642356", due_now: "$1800"} } } diff --git a/lib/plausible_web/templates/billing/_plan_option.html.eex b/lib/plausible_web/templates/billing/_plan_option.html.eex new file mode 100644 index 000000000..c624b6be0 --- /dev/null +++ b/lib/plausible_web/templates/billing/_plan_option.html.eex @@ -0,0 +1,7 @@ + + <%= @volume %> + + <%= @monthly_price %> + <%= @yearly_price %> + + diff --git a/lib/plausible_web/templates/billing/change_plan.html.eex b/lib/plausible_web/templates/billing/change_plan.html.eex index 25f05d48b..d5a61b345 100644 --- a/lib/plausible_web/templates/billing/change_plan.html.eex +++ b/lib/plausible_web/templates/billing/change_plan.html.eex @@ -6,24 +6,24 @@

Change subscription plan

-
-
+
+
Select your new plan
-
+
Depending on which plan you choose, your card might be charged immediately and your next payment date could change. You can preview these changes before committing.
- - - -
-
-

+
+

What happens if I go over my page views limit?

-
+
You will never be charged extra for an occasional traffic spike. There are no surprise fees and your card will never be charged unexpectedly.

If your page views exceed your plan for two consecutive months, we will contact you to upgrade to a higher plan for the following month. You will have two weeks to make a decision. You can decide to continue with a higher plan or to cancel your account at that point.
@@ -123,7 +83,7 @@
-
+
Questions? Contact <%= link("support@plausible.io", to: "mailto: support@plausible.io", class: "text-indigo-500") %>