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 %>
- Staff trasmissione: <%= plan.max_staff_transmission || "illimitato" %> / anno
diff --git a/backend/spec/helpers/public/billing_helper_spec.rb b/backend/spec/helpers/public/billing_helper_spec.rb
index 33e8176..3ae67a2 100644
--- a/backend/spec/helpers/public/billing_helper_spec.rb
+++ b/backend/spec/helpers/public/billing_helper_spec.rb
@@ -32,7 +32,7 @@ RSpec.describe Public::BillingHelper, type: :helper do
current_interval: "yearly"
)
expect(action[:kind]).to eq(:current)
- expect(action[:label]).to include("€39,90/anno")
+ expect(action[:label]).to include("€40/anno")
end
it "propone cambio intervallo sullo stesso piano" do
diff --git a/backend/spec/requests/public/club_billing_spec.rb b/backend/spec/requests/public/club_billing_spec.rb
index c8cb30e..41f15b9 100644
--- a/backend/spec/requests/public/club_billing_spec.rb
+++ b/backend/spec/requests/public/club_billing_spec.rb
@@ -72,7 +72,7 @@ RSpec.describe "Public club billing", type: :request do
get public_club_billing_path(club)
expect(response.body).to include("Completa dati di fatturazione")
- expect(response.body).not_to include("Attiva Premium Light — €39,90/anno")
+ expect(response.body).not_to include("Attiva Premium Light — €40/anno")
end
it "dopo profilo completo reindirizza al checkout" do
@@ -111,8 +111,8 @@ RSpec.describe "Public club billing", type: :request do
login!
get public_club_billing_path(club)
- expect(response.body).to include("Attiva Premium Light — €39,90/anno")
- expect(response.body).to include("Attiva Premium Light — €4,90/mese")
+ expect(response.body).to include("Attiva Premium Light — €40/anno")
+ expect(response.body).to include("Attiva Premium Light — €5/mese")
allow(Billing::Stripe::CheckoutSession).to receive(:new).and_return(
instance_double(Billing::Stripe::CheckoutSession, url: "https://checkout.stripe.com/test")
diff --git a/docs/STRIPE_PRODUCTION.md b/docs/STRIPE_PRODUCTION.md
index dd486d0..14d71f3 100644
--- a/docs/STRIPE_PRODUCTION.md
+++ b/docs/STRIPE_PRODUCTION.md
@@ -7,8 +7,10 @@ Crea **2 prodotti** in Stripe, ciascuno con **2 prezzi ricorrenti**:
| Piano app | Prodotto Stripe (Dashboard) | Mensile | Annuale | Variabile `.env` |
|-----------|------------------------------|---------|---------|------------------|
-| Premium Light | **Match Live TV** | €4,90 | €39,90 | `STRIPE_PREMIUM_LIGHT_MONTHLY_PRICE_ID` / `..._YEARLY_...` |
-| Premium Full | **Match Live TV PRO** | €9,90 | €69,90 | `STRIPE_PREMIUM_FULL_MONTHLY_PRICE_ID` / `..._YEARLY_...` |
+| Premium Light | **Match Live TV** | €5 | €40 | `STRIPE_PREMIUM_LIGHT_MONTHLY_PRICE_ID` / `..._YEARLY_...` |
+| Premium Full | **Match Live TV PRO** | €20 | €200 | `STRIPE_PREMIUM_FULL_MONTHLY_PRICE_ID` / `..._YEARLY_...` |
+
+Gli importi in Stripe Dashboard devono coincidere con il sito (€5/€40 e €20/€200).
In Stripe apri ogni prezzo e copia l’**ID prezzo** (`price_...`), non l’ID prodotto.