Files
astuto/app/views/billing/index.html.erb
Riccardo Graziosi bea146e612 Add billing (#329)
2024-05-03 18:11:07 +02:00

16 lines
587 B
Plaintext

<%=
react_component(
'Billing',
{
tenantBilling: @tenant.tenant_billing,
prices: @prices,
createCheckoutSessionUrl: create_checkout_session_url,
billingUrl: get_url_for(method(:request_billing_page_url)),
manageSubscriptionUrl: Rails.application.stripe_manage_subscription_url,
stripeMonthlyLookupKey: Rails.application.stripe_monthly_lookup_key,
stripeYearlyLookupKey: Rails.application.stripe_yearly_lookup_key,
stripePublicKey: Rails.application.stripe_public_key,
authenticityToken: form_authenticity_token
}
)
%>