Method: Pay::Stripe::Merchant#account_link

Defined in:
lib/pay/stripe/merchant.rb


35
36
37
38
39
40
41
42
43
44
# File 'lib/pay/stripe/merchant.rb', line 35

def (refresh_url:, return_url:, type: "account_onboarding", **options)
  ::Stripe::AccountLink.create({
    account: processor_id,
    refresh_url: refresh_url,
    return_url: return_url,
    type: type
  })
rescue ::Stripe::StripeError => e
  raise Pay::Stripe::Error, e
end