Class: Stripe::AccountSessionService

Inherits:
StripeService show all
Defined in:
lib/stripe/services/account_session_service.rb

Instance Method Summary collapse

Methods inherited from StripeService

#initialize, #request, #request_stream

Constructor Details

This class inherits a constructor from Stripe::StripeService

Instance Method Details

#create(params = {}, opts = {}) ⇒ Object

Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.



7
8
9
10
11
12
13
14
15
# File 'lib/stripe/services/account_session_service.rb', line 7

def create(params = {}, opts = {})
  request(
    method: :post,
    path: "/v1/account_sessions",
    params: params,
    opts: opts,
    base_address: :api
  )
end