Class: VeriTrans::Tokens
Constant Summary collapse
- API_PATH =
'/vtdirect/v1/tokens'
Instance Attribute Summary
Attributes inherited from ApiBase
#ca_cert_file_path, #host, #http_request, #port, #server_key, #use_ssl, #verify_ssl
Instance Method Summary collapse
- #get_token(client_key, card_number, card_exp_year, card_exp_month, card_cvv) ⇒ Object
-
#initialize(setting) ⇒ Tokens
constructor
A new instance of Tokens.
Methods inherited from ApiBase
#do_request_get, #do_request_post
Constructor Details
#initialize(setting) ⇒ Tokens
Returns a new instance of Tokens.
10 11 12 |
# File 'lib/veri_trans/tokens.rb', line 10 def initialize(setting) super(setting) end |
Instance Method Details
#get_token(client_key, card_number, card_exp_year, card_exp_month, card_cvv) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/veri_trans/tokens.rb', line 19 def get_token(client_key, card_number, card_exp_year, card_exp_month, card_cvv) params = {:card_number => card_number, :card_exp_month => card_exp_month, :card_exp_year => card_exp_year, :card_cvv => card_cvv, :client_key => client_key} self.do_request_get(API_PATH, params) end |