mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Add billing (#329)
This commit is contained in:
committed by
GitHub
parent
fc36c967af
commit
bea146e612
@@ -53,6 +53,11 @@ class TenantsController < ApplicationController
|
||||
|
||||
CreateWelcomeEntitiesWorkflow.new().run
|
||||
|
||||
if is_o_auth_login
|
||||
CreateStripeCustomer.new().run
|
||||
TenantMailer.trial_start(tenant: @tenant).deliver_later
|
||||
end
|
||||
|
||||
logger.info { "New tenant registration: #{Current.tenant.inspect}" }
|
||||
|
||||
render json: @tenant, status: :created
|
||||
|
||||
Reference in New Issue
Block a user