Class: Stripe::DelegatedCheckout::OrderService

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

#retrieve(order_id, params = {}, opts = {}) ⇒ Object

Retrieves a delegated checkout order.



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

def retrieve(order_id, params = {}, opts = {})
  request(
    method: :get,
    path: format("/v1/delegated_checkout/orders/%<order_id>s", { order_id: CGI.escape(order_id) }),
    params: params,
    opts: opts,
    base_address: :api
  )
end