Billing: fatture manuali, profilo obbligatorio e piani Stripe mensile/annuale.
Rimuove link al portale Stripe in area cliente, aggiunge flusso admin per PDF fattura e email, blocca checkout senza dati di fatturazione, allinea prezzi a €4,90/€39,90 e €9,90/€69,90, locale italiano e documentazione deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
<%# locals: (club:, payments:, invoices:) %>
|
||||
<%# locals: (club:, payments:) %>
|
||||
<section class="billing-documents" style="margin-top:40px">
|
||||
<h2>Pagamenti e fatture</h2>
|
||||
<p style="color:#888;font-size:0.9rem">
|
||||
Qui trovi lo storico dei pagamenti e le fatture emesse alla società.
|
||||
I pagamenti premium sono elaborati in modo sicuro tramite Stripe.
|
||||
Storico dei pagamenti della società e relative fatture emesse da Match Live TV.
|
||||
</p>
|
||||
|
||||
<% unless club.billing_profile_complete? %>
|
||||
<div class="flash alert" style="margin:16px 0">
|
||||
<strong>Dati di fatturazione incompleti.</strong>
|
||||
Compila ragione sociale, indirizzo, P.IVA/CF e SDI o PEC per ricevere le fatture.
|
||||
Compila ragione sociale, indirizzo, P.IVA/CF e SDI o PEC per ricevere le fatture via email.
|
||||
<%= link_to "Completa ora", public_club_billing_profile_path(club), class: "btn btn-secondary", style: "margin-top:10px;display:inline-block" %>
|
||||
</div>
|
||||
<% else %>
|
||||
@@ -19,14 +18,7 @@
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<% if MatchLiveTv.stripe_enabled? && club.subscription&.stripe_customer_id.present? %>
|
||||
<%= button_to "Sincronizza pagamenti da Stripe",
|
||||
public_club_billing_sync_payments_path(club),
|
||||
class: "btn btn-secondary",
|
||||
style: "margin:12px 0" %>
|
||||
<% end %>
|
||||
|
||||
<h3 style="margin-top:28px;font-size:1.1rem">Pagamenti effettuati</h3>
|
||||
<h3 style="margin-top:28px;font-size:1.1rem">Pagamenti e fatture</h3>
|
||||
<% if payments.any? %>
|
||||
<table class="data billing-table">
|
||||
<thead>
|
||||
@@ -34,54 +26,34 @@
|
||||
<th>Data</th>
|
||||
<th>Descrizione</th>
|
||||
<th>Importo</th>
|
||||
<th>Stato</th>
|
||||
<th>Stato pagamento</th>
|
||||
<th>Fattura</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% payments.each do |payment| %>
|
||||
<% inv = payment.invoice_for_display %>
|
||||
<tr>
|
||||
<td><%= payment.paid_at ? l(payment.paid_at, format: :short) : "—" %></td>
|
||||
<td><%= payment.description.presence || payment.plan_slug&.humanize || "Abbonamento" %></td>
|
||||
<td><%= payment.paid_at ? l_local(payment.paid_at, format: :short) : "—" %></td>
|
||||
<td><%= payment.display_description %></td>
|
||||
<td><%= payment.formatted_amount %></td>
|
||||
<td><%= payment.status %></td>
|
||||
<td><%= payment.display_status %></td>
|
||||
<td>
|
||||
<% if payment.receipt_url.present? %>
|
||||
<%= link_to "Ricevuta Stripe", payment.receipt_url, target: "_blank", rel: "noopener" %>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% else %>
|
||||
<p style="color:#888">Nessun pagamento registrato. Dopo un abbonamento premium comparirà qui (anche tramite «Sincronizza pagamenti»).</p>
|
||||
<% end %>
|
||||
|
||||
<h3 style="margin-top:28px;font-size:1.1rem">Fatture</h3>
|
||||
<% if invoices.any? %>
|
||||
<table class="data billing-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Numero</th>
|
||||
<th>Data</th>
|
||||
<th>Importo</th>
|
||||
<th>Stato</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% invoices.each do |invoice| %>
|
||||
<tr>
|
||||
<td><%= invoice.number %></td>
|
||||
<td><%= l(invoice.issued_on) %></td>
|
||||
<td><%= invoice.formatted_amount %></td>
|
||||
<td><%= invoice.status %></td>
|
||||
<td>
|
||||
<% if invoice.downloadable? %>
|
||||
<%= link_to "Scarica PDF", public_club_billing_invoice_path(club, invoice) %>
|
||||
<% if inv.present? %>
|
||||
<%= inv.display_number %>
|
||||
· <%= inv.display_status %>
|
||||
<% else %>
|
||||
—
|
||||
<% end %>
|
||||
</td>
|
||||
<td>
|
||||
<% if inv&.downloadable? %>
|
||||
<%= link_to "Scarica PDF", public_club_billing_invoice_path(club, inv) %>
|
||||
<% elsif inv&.draft? %>
|
||||
<span style="color:#888">PDF in preparazione</span>
|
||||
<% else %>
|
||||
<span style="color:#888">—</span>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -89,6 +61,6 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<% else %>
|
||||
<p style="color:#888">Nessuna fattura disponibile. Compariranno qui dopo l’emissione.</p>
|
||||
<p style="color:#888">Nessun pagamento registrato. Dopo un abbonamento premium comparirà qui.</p>
|
||||
<% end %>
|
||||
</section>
|
||||
|
||||
@@ -2,64 +2,65 @@
|
||||
<% if show_legend %>
|
||||
<h2 class="form-section-title" style="margin-top:24px">Dati di fatturazione</h2>
|
||||
<p style="color:#888;font-size:0.88rem;margin:-8px 0 16px">
|
||||
Obbligatori per ricevere le fatture elettroniche (P.IVA/CF, indirizzo, SDI o PEC).
|
||||
Tutti i campi contrassegnati sono obbligatori per abbonarti a un piano premium e per emettere le fatture.
|
||||
Per le società serve la P.IVA; per le persone fisiche il Codice Fiscale. Serve SDI <em>oppure</em> PEC.
|
||||
I pagamenti restano gestiti in modo sicuro da Stripe.
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= label_tag "club[billing_entity_type]", "Tipo intestatario" %>
|
||||
<%= label_tag "club[billing_entity_type]", "Tipo intestatario *" %>
|
||||
<%= select_tag "club[billing_entity_type]",
|
||||
options_for_select(Club::BILLING_ENTITY_TYPES.map { |k, v| [v, k] }, record.billing_entity_type),
|
||||
include_blank: false %>
|
||||
|
||||
<%= label_tag "club[billing_legal_name]", "Ragione sociale / nome e cognome" %>
|
||||
<%= label_tag "club[billing_legal_name]", "Ragione sociale / nome e cognome *" %>
|
||||
<%= text_field_tag "club[billing_legal_name]", record.billing_legal_name, placeholder: "es. ASD Tigers Volley" %>
|
||||
|
||||
<div style="display:grid;grid-template-columns:1fr 1fr;gap:12px">
|
||||
<div>
|
||||
<%= label_tag "club[billing_vat_number]", "Partita IVA" %>
|
||||
<%= label_tag "club[billing_vat_number]", "Partita IVA * (società)" %>
|
||||
<%= text_field_tag "club[billing_vat_number]", record.billing_vat_number, placeholder: "12345678901" %>
|
||||
</div>
|
||||
<div>
|
||||
<%= label_tag "club[billing_fiscal_code]", "Codice Fiscale" %>
|
||||
<%= label_tag "club[billing_fiscal_code]", "Codice Fiscale * (persona fisica)" %>
|
||||
<%= text_field_tag "club[billing_fiscal_code]", record.billing_fiscal_code, placeholder: "RSSMRA80A01H501U" %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= label_tag "club[billing_email]", "Email fatturazione" %>
|
||||
<%= label_tag "club[billing_email]", "Email fatturazione *" %>
|
||||
<%= email_field_tag "club[billing_email]", record.billing_email, placeholder: "amministrazione@societa.it" %>
|
||||
|
||||
<%= label_tag "club[billing_phone]", "Telefono (opzionale)" %>
|
||||
<%= text_field_tag "club[billing_phone]", record.billing_phone %>
|
||||
|
||||
<%= label_tag "club[billing_address_line]", "Indirizzo" %>
|
||||
<%= label_tag "club[billing_address_line]", "Indirizzo *" %>
|
||||
<%= text_field_tag "club[billing_address_line]", record.billing_address_line, placeholder: "Via Roma 1" %>
|
||||
|
||||
<div style="display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px">
|
||||
<div>
|
||||
<%= label_tag "club[billing_city]", "Città" %>
|
||||
<%= label_tag "club[billing_city]", "Città *" %>
|
||||
<%= text_field_tag "club[billing_city]", record.billing_city %>
|
||||
</div>
|
||||
<div>
|
||||
<%= label_tag "club[billing_province]", "Prov." %>
|
||||
<%= label_tag "club[billing_province]", "Prov. *" %>
|
||||
<%= text_field_tag "club[billing_province]", record.billing_province, maxlength: 2, placeholder: "MI" %>
|
||||
</div>
|
||||
<div>
|
||||
<%= label_tag "club[billing_postal_code]", "CAP" %>
|
||||
<%= label_tag "club[billing_postal_code]", "CAP *" %>
|
||||
<%= text_field_tag "club[billing_postal_code]", record.billing_postal_code %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= label_tag "club[billing_country]", "Paese (ISO)" %>
|
||||
<%= label_tag "club[billing_country]", "Paese (ISO) *" %>
|
||||
<%= text_field_tag "club[billing_country]", record.billing_country.presence || "IT", maxlength: 2 %>
|
||||
|
||||
<div style="display:grid;grid-template-columns:1fr 1fr;gap:12px">
|
||||
<div>
|
||||
<%= label_tag "club[billing_recipient_code]", "Codice destinatario SDI (7 caratteri)" %>
|
||||
<%= label_tag "club[billing_recipient_code]", "Codice destinatario SDI (7 car.) *" %>
|
||||
<%= text_field_tag "club[billing_recipient_code]", record.billing_recipient_code, maxlength: 7, placeholder: "XXXXXXX" %>
|
||||
</div>
|
||||
<div>
|
||||
<%= label_tag "club[billing_pec]", "PEC (alternativa a SDI)" %>
|
||||
<%= label_tag "club[billing_pec]", "PEC (alternativa a SDI) *" %>
|
||||
<%= email_field_tag "club[billing_pec]", record.billing_pec, placeholder: "pec@societa.it" %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,19 +1,23 @@
|
||||
<%# locals: (club:, entitlements: nil, subscription: nil) %>
|
||||
<%# locals: (club:, entitlements: nil, subscription: nil, on_billing_page: false) %>
|
||||
<% current_plan = entitlements&.plan || subscription&.plan || Plan["free"] %>
|
||||
<p style="color:#aaa;margin-bottom:8px">
|
||||
Società: <strong><%= club.name %></strong>
|
||||
· Piano attuale: <strong><%= current_plan.name %></strong>
|
||||
(valido per tutte le squadre)
|
||||
· <%= link_to "Gestisci abbonamento", public_club_billing_path(club) %>
|
||||
<% unless local_assigns[:on_billing_page] %>
|
||||
· <%= link_to "Gestisci abbonamento", public_club_billing_path(club) %>
|
||||
<% end %>
|
||||
</p>
|
||||
<% if subscription&.stripe_subscription_id.present? %>
|
||||
<p style="color:#888;font-size:0.9rem;margin-top:0">
|
||||
Stato Stripe: <strong><%= subscription.status %></strong>
|
||||
<% if subscription.current_period_end.present? %>
|
||||
· Rinnovo: <strong><%= l(subscription.current_period_end, format: :long) %></strong>
|
||||
<% end %>
|
||||
<% if subscription.cancel_at_period_end? %>
|
||||
· <span style="color:#e53935">Disdetta alla scadenza</span>
|
||||
<span style="color:#e53935">
|
||||
Abbonamento valido fino al
|
||||
<strong><%= subscription.current_period_end.present? ? l_local(subscription.current_period_end.to_date) : "fine periodo" %></strong>,
|
||||
poi piano Free.
|
||||
</span>
|
||||
<% elsif subscription.current_period_end.present? %>
|
||||
Prossimo rinnovo: <strong><%= l_local(subscription.current_period_end) %></strong>
|
||||
<% end %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
@@ -1,22 +1,40 @@
|
||||
<%# locals: (name:, label:, value: nil, input_type: "text", required: false, autocomplete: nil, minlength: nil, id: nil) %>
|
||||
<%# locals: (name:, label:, value: nil, input_type: "text", required: false, autocomplete: nil, minlength: nil, id: nil, masked: nil) %>
|
||||
<% field_id = local_assigns.fetch(:id, nil).presence || name.to_s %>
|
||||
<% visible_type = local_assigns.fetch(:input_type, "text").to_s == "email" ? "email" : "text" %>
|
||||
<div class="input-toggle" data-input-toggle>
|
||||
<% visible_type = local_assigns.fetch(:input_type, "text").to_s %>
|
||||
<% is_email = visible_type == "email" %>
|
||||
<% masked = local_assigns.key?(:masked) ? local_assigns[:masked] : !is_email %>
|
||||
|
||||
<div class="input-toggle<%= " input-toggle--plain" unless masked %>"<%= " data-input-toggle" if masked %>>
|
||||
<%= label_tag field_id, label %>
|
||||
<div class="input-toggle__field">
|
||||
<%= tag.input(
|
||||
type: "password",
|
||||
name: name,
|
||||
id: field_id,
|
||||
value: local_assigns.fetch(:value, nil),
|
||||
required: local_assigns.fetch(:required, false),
|
||||
autocomplete: local_assigns.fetch(:autocomplete, nil),
|
||||
minlength: local_assigns.fetch(:minlength, nil),
|
||||
class: "input-toggle__input",
|
||||
data: { visible_type: visible_type }
|
||||
) %>
|
||||
<button type="button" class="input-toggle__btn" aria-label="Mostra <%= label.downcase %>" data-label-hide="Nascondi <%= label.downcase %>">
|
||||
<i class="fa-regular fa-eye" aria-hidden="true"></i>
|
||||
</button>
|
||||
<% if masked %>
|
||||
<%= tag.input(
|
||||
type: "password",
|
||||
name: name,
|
||||
id: field_id,
|
||||
value: local_assigns.fetch(:value, nil),
|
||||
required: local_assigns.fetch(:required, false),
|
||||
autocomplete: local_assigns.fetch(:autocomplete, nil),
|
||||
minlength: local_assigns.fetch(:minlength, nil),
|
||||
class: "input-toggle__input",
|
||||
data: { visible_type: "text" }
|
||||
) %>
|
||||
<button type="button" class="input-toggle__btn" aria-label="Mostra <%= label.downcase %>" data-label-hide="Nascondi <%= label.downcase %>">
|
||||
<i class="fa-regular fa-eye" aria-hidden="true"></i>
|
||||
</button>
|
||||
<% elsif is_email %>
|
||||
<%= email_field_tag name, local_assigns.fetch(:value, nil),
|
||||
id: field_id,
|
||||
required: local_assigns.fetch(:required, false),
|
||||
autocomplete: local_assigns.fetch(:autocomplete, nil),
|
||||
class: "input-toggle__input input-toggle__input--plain" %>
|
||||
<% else %>
|
||||
<%= text_field_tag name, local_assigns.fetch(:value, nil),
|
||||
id: field_id,
|
||||
required: local_assigns.fetch(:required, false),
|
||||
autocomplete: local_assigns.fetch(:autocomplete, nil),
|
||||
minlength: local_assigns.fetch(:minlength, nil),
|
||||
class: "input-toggle__input input-toggle__input--plain" %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<% entitlements ||= @entitlements %>
|
||||
<% subscription ||= @subscription %>
|
||||
<% current_slug = local_assigns.fetch(:current_plan_slug, nil).presence || entitlements&.plan&.slug || subscription&.plan&.slug || "free" %>
|
||||
<% current_interval = subscription&.billing_interval %>
|
||||
<% billing_mode = club.present? %>
|
||||
|
||||
<div class="plans">
|
||||
@@ -10,18 +11,23 @@
|
||||
<% action = billing_mode ? plan_billing_action(
|
||||
current_slug: current_slug,
|
||||
target_plan: plan,
|
||||
stripe_subscription_active: stripe_subscription_active?(subscription)
|
||||
stripe_subscription_active: stripe_subscription_active?(subscription),
|
||||
current_interval: current_interval
|
||||
) : nil %>
|
||||
<div class="plan-card <%= "featured" if plan.slug == current_slug || (!billing_mode && plan.slug == "premium_light") %>">
|
||||
<h3><%= plan.name %></h3>
|
||||
<% if plan.slug == "free" %>
|
||||
<div class="plan-price">€0</div>
|
||||
<% elsif plan.slug == "premium_light" %>
|
||||
<div class="plan-price" style="color:#e53935">€40<span style="font-size:1rem;font-weight:400">/anno</span></div>
|
||||
<p style="color:#aaa;font-size:0.9rem;margin:-8px 0 12px">oppure <strong>€5</strong>/mese</p>
|
||||
<% light_yearly = Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: "yearly") %>
|
||||
<% light_monthly = Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: "monthly") %>
|
||||
<div class="plan-price" style="color:#e53935"><%= light_yearly %></div>
|
||||
<p class="plan-price-alt">oppure <strong><%= light_monthly %></strong></p>
|
||||
<% else %>
|
||||
<div class="plan-price">€200<span style="font-size:1rem;font-weight:400">/anno</span></div>
|
||||
<p style="color:#aaa;font-size:0.9rem;margin:-8px 0 12px">oppure <strong>€20</strong>/mese</p>
|
||||
<% full_yearly = Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: "yearly") %>
|
||||
<% full_monthly = Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: "monthly") %>
|
||||
<div class="plan-price"><%= full_yearly %></div>
|
||||
<p class="plan-price-alt">oppure <strong><%= full_monthly %></strong></p>
|
||||
<% end %>
|
||||
<ul>
|
||||
<li>Responsabili trasmissione: <strong><%= plan.max_staff_transmission || "illimitato" %></strong> / anno per squadra</li>
|
||||
@@ -30,26 +36,45 @@
|
||||
<li>YouTube: <% if plan.slug == "premium_light" %>Match TV Light<% elsif plan.youtube_enabled? %>canale società<% else %>no<% end %></li>
|
||||
</ul>
|
||||
<% if billing_mode %>
|
||||
<% case action[:kind] %>
|
||||
<% when :current %>
|
||||
<% action_kind = action[:kind] %>
|
||||
<% if action_kind == :current %>
|
||||
<span class="btn btn-secondary" style="opacity:0.7"><%= action[:label] %></span>
|
||||
<% when :contact, :disabled %>
|
||||
<p style="color:#888;font-size:0.85rem"><%= action[:label] %></p>
|
||||
<% when :checkout, :change %>
|
||||
<%= link_to action[:label], public_club_checkout_path(club, plan: plan.slug), class: "btn btn-primary" %>
|
||||
<% elsif action_kind == :contact || action_kind == :disabled %>
|
||||
<p class="plan-action-hint"><%= action[:label] %></p>
|
||||
<% elsif action_kind == :checkout_options || action_kind == :change_options || action_kind == :interval_switch %>
|
||||
<% if billing_profile_blocks_premium?(club) %>
|
||||
<p class="plan-action-hint" style="color:#e53935;margin-bottom:10px">
|
||||
<%= billing_profile_incomplete_message(club) %>
|
||||
</p>
|
||||
<%= link_to "Completa dati di fatturazione",
|
||||
public_club_billing_profile_path(club, plan: plan.slug),
|
||||
class: "btn btn-primary" %>
|
||||
<% else %>
|
||||
<div class="plan-interval-actions">
|
||||
<% plan_intervals_for_display(action[:intervals]).each do |interval| %>
|
||||
<% btn_kind = action_kind == :checkout_options ? :checkout : :change %>
|
||||
<%= link_to plan_interval_button_label(plan, interval, kind: btn_kind),
|
||||
plan_interval_checkout_path(club, plan, interval),
|
||||
class: plan_interval_button_class(interval) %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% if action_kind == :interval_switch && action[:current_interval].present? %>
|
||||
<p class="plan-action-hint">Fatturazione attuale: <%= Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: action[:current_interval]) %></p>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% elsif plan.slug == "free" %>
|
||||
<%= link_to "Inizia gratis", public_signup_path, class: "btn btn-secondary" %>
|
||||
<% else %>
|
||||
<%= link_to "Registrati", public_signup_path(plan: plan.slug), class: "btn btn-primary" %>
|
||||
<div class="plan-interval-actions">
|
||||
<% plan_intervals_for_display(Billing::Stripe::PriceCatalog.available_intervals(plan_slug: plan.slug)).each do |interval| %>
|
||||
<%= link_to "Registrati — #{Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: interval)}",
|
||||
public_signup_path(plan: plan.slug, interval: interval),
|
||||
class: plan_interval_button_class(interval) %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<% if show_stripe_portal && billing_mode && subscription&.premium? && MatchLiveTv.stripe_enabled? && subscription&.stripe_customer_id.present? %>
|
||||
<p style="margin-top:20px">
|
||||
<%= button_to "Gestisci fatturazione su Stripe", public_club_portal_path(club), class: "btn btn-secondary" %>
|
||||
<span style="color:#888;font-size:0.85rem;display:block;margin-top:8px">Cambia metodo di pagamento, scarica fatture o disdici l'abbonamento.</span>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
36
backend/app/views/shared/_subscription_cancel.html.erb
Normal file
36
backend/app/views/shared/_subscription_cancel.html.erb
Normal file
@@ -0,0 +1,36 @@
|
||||
<%# locals: (club:, subscription:) %>
|
||||
<% return unless subscription&.premium? && subscription.stripe_subscription_id.present? && MatchLiveTv.stripe_enabled? %>
|
||||
|
||||
<section class="subscription-cancel" style="margin-top:24px;padding:16px;border:1px solid #333;border-radius:8px">
|
||||
<% if subscription.cancel_at_period_end? %>
|
||||
<p style="color:#e53935;margin:0 0 8px">
|
||||
<strong>Disdetta programmata.</strong>
|
||||
Il piano <strong><%= subscription.plan.name %></strong> resta attivo fino al
|
||||
<% if subscription.current_period_end.present? %>
|
||||
<strong><%= l_local(subscription.current_period_end.to_date) %></strong>.
|
||||
<% else %>
|
||||
<strong>fine del periodo già pagato</strong>.
|
||||
<% end %>
|
||||
Da quel giorno la società passerà automaticamente al piano <strong>Free</strong>.
|
||||
</p>
|
||||
<p style="color:#888;font-size:0.88rem;margin:0">
|
||||
Per ripristinare l'abbonamento prima della scadenza, contatta il supporto Match Live TV.
|
||||
</p>
|
||||
<% else %>
|
||||
<p style="color:#aaa;margin:0 0 12px;font-size:0.9rem">
|
||||
Puoi disdire in qualsiasi momento: l'abbonamento resta valido fino alla fine del periodo già pagato,
|
||||
poi passi al piano Free senza ulteriori addebiti.
|
||||
</p>
|
||||
<%= button_to "Annulla abbonamento",
|
||||
public_club_billing_cancel_subscription_path(club),
|
||||
method: :post,
|
||||
class: "btn btn-outline",
|
||||
form: {
|
||||
data: {
|
||||
turbo_confirm: subscription.current_period_end.present? ?
|
||||
"Confermi la disdetta? Il piano #{subscription.plan.name} resterà attivo fino al #{l_local(subscription.current_period_end)}, poi passerai al Free." :
|
||||
"Confermi la disdetta dell'abbonamento?"
|
||||
}
|
||||
} %>
|
||||
<% end %>
|
||||
</section>
|
||||
Reference in New Issue
Block a user