From 62d86d16ecc42e405740978c8ec1147f23d75a88 Mon Sep 17 00:00:00 2001 From: Emiliano Frascaro Date: Tue, 2 Jun 2026 17:17:32 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20prezzi=20pubblici:=20Premium=20Light=20?= =?UTF-8?q?=E2=82=AC5/=E2=82=AC40,=20Full=20=E2=82=AC20/=E2=82=AC200.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ripristina le etichette in PriceCatalog usate da prezzi, abbonamento e checkout. Co-authored-by: Cursor --- backend/app/services/billing/stripe/price_catalog.rb | 4 ++-- backend/app/views/public/teams/billing.html.erb | 8 ++++---- backend/spec/helpers/public/billing_helper_spec.rb | 2 +- backend/spec/requests/public/club_billing_spec.rb | 6 +++--- docs/STRIPE_PRODUCTION.md | 6 ++++-- 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/backend/app/services/billing/stripe/price_catalog.rb b/backend/app/services/billing/stripe/price_catalog.rb index 8ab48a2..bb91ec9 100644 --- a/backend/app/services/billing/stripe/price_catalog.rb +++ b/backend/app/services/billing/stripe/price_catalog.rb @@ -5,8 +5,8 @@ module Billing DEFAULT_INTERVAL = "yearly" PRICING = { - "premium_light" => { "yearly" => "€39,90/anno", "monthly" => "€4,90/mese" }, - "premium_full" => { "yearly" => "€69,90/anno", "monthly" => "€9,90/mese" } + "premium_light" => { "yearly" => "€40/anno", "monthly" => "€5/mese" }, + "premium_full" => { "yearly" => "€200/anno", "monthly" => "€20/mese" } }.freeze class << self diff --git a/backend/app/views/public/teams/billing.html.erb b/backend/app/views/public/teams/billing.html.erb index f359e33..71c7d0b 100644 --- a/backend/app/views/public/teams/billing.html.erb +++ b/backend/app/views/public/teams/billing.html.erb @@ -12,11 +12,11 @@ <% if plan.slug == "free" %>
€0
<% elsif plan.slug == "premium_light" %> -
€40/anno
-

oppure €5/mese

+
<%= Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: "yearly") %>
+

oppure <%= Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: "monthly") %>

<% else %> -
€200/anno
-

oppure €20/mese

+
<%= Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: "yearly") %>
+

oppure <%= Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: "monthly") %>

<% end %>