11 lines
259 B
Ruby
11 lines
259 B
Ruby
class Enterprise::Billing::CreateSessionService
|
|
def create_session(customer_id, return_url = ENV.fetch('FRONTEND_URL'))
|
|
Stripe::BillingPortal::Session.create(
|
|
{
|
|
customer: customer_id,
|
|
return_url: return_url
|
|
}
|
|
)
|
|
end
|
|
end
|