Class: Stripe::SharedPayment::GrantedTokenService

Inherits:
Stripe::StripeService show all
Defined in:
lib/stripe/services/shared_payment/granted_token_service.rb

Instance Method Summary collapse

Methods inherited from Stripe::StripeService

#initialize, #request, #request_stream

Constructor Details

This class inherits a constructor from Stripe::StripeService

Instance Method Details

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

Retrieves an existing SharedPaymentGrantedToken object



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

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