fix(event model): duplicate payout status enum removed
This commit is contained in:
@@ -3,15 +3,15 @@ class StripeConnectService
|
||||
return if user.stripe_connected_account_id.present?
|
||||
|
||||
account = Stripe::Account.create(
|
||||
type: 'express',
|
||||
country: 'FR',
|
||||
type: "express",
|
||||
country: "FR",
|
||||
email: user.email,
|
||||
capabilities: {
|
||||
card_payments: {requested: true},
|
||||
transfers: {requested: true}
|
||||
card_payments: { requested: true },
|
||||
transfers: { requested: true }
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
user.update!(stripe_connected_account_id: account.id)
|
||||
account
|
||||
end
|
||||
@@ -23,13 +23,13 @@ class StripeConnectService
|
||||
account: user.stripe_connected_account_id,
|
||||
refresh_url: Rails.application.routes.url_helpers.promoter_stripe_refresh_url,
|
||||
return_url: Rails.application.routes.url_helpers.promoter_stripe_return_url,
|
||||
type: 'account_onboarding'
|
||||
type: "account_onboarding"
|
||||
)
|
||||
|
||||
|
||||
account_link.url
|
||||
end
|
||||
|
||||
def self.get_account_details(account_id)
|
||||
Stripe::Account.retrieve(account_id)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user