Method: Pay::Stripe::Merchant#account_link
- Defined in:
- lib/pay/stripe/merchant.rb
#account_link(refresh_url:, return_url:, type: "account_onboarding", **options) ⇒ Object
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/pay/stripe/merchant.rb', line 35 def account_link(refresh_url:, return_url:, type: "account_onboarding", **) ::Stripe::AccountLink.create({ account: processor_id, refresh_url: refresh_url, return_url: return_url, type: type }.merge()) rescue ::Stripe::StripeError => e raise Pay::Stripe::Error, e end |