Class: Stripe::ConfirmationTokenService

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

Defined Under Namespace

Classes: RetrieveParams

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(confirmation_token, params = {}, opts = {}) ⇒ Object

Retrieves an existing ConfirmationToken object



16
17
18
19
20
21
22
23
24
# File 'lib/stripe/services/confirmation_token_service.rb', line 16

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