Class: CheckoutSdk::Tokens::TokensClient

Inherits:
Client
  • Object
show all
Defined in:
lib/checkout_sdk/tokens/tokens_client.rb

Instance Attribute Summary

Attributes inherited from Client

#api_client, #authorization_type, #configuration

Instance Method Summary collapse

Constructor Details

#initialize(api_client, configuration) ⇒ TokensClient

Returns a new instance of TokensClient.

Parameters:



11
12
13
# File 'lib/checkout_sdk/tokens/tokens_client.rb', line 11

def initialize(api_client, configuration)
  super(api_client, configuration, CheckoutSdk::AuthorizationType::PUBLIC_KEY)
end

Instance Method Details

#request_token(token_request) ⇒ Object

Parameters:



16
17
18
# File 'lib/checkout_sdk/tokens/tokens_client.rb', line 16

def request_token(token_request)
  api_client.invoke_post(TOKENS, sdk_authorization, token_request)
end