Class: Stripe::Checkout::SessionLineItemService

Inherits:
StripeService show all
Defined in:
lib/stripe/services/checkout/session_line_item_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

#list(session, params = {}, opts = {}) ⇒ Object

When retrieving a Checkout Session, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.



8
9
10
11
12
13
14
15
16
# File 'lib/stripe/services/checkout/session_line_item_service.rb', line 8

def list(session, params = {}, opts = {})
  request(
    method: :get,
    path: format("/v1/checkout/sessions/%<session>s/line_items", { session: CGI.escape(session) }),
    params: params,
    opts: opts,
    base_address: :api
  )
end