Class: Payjp::Token

Inherits:
APIResource show all
Includes:
APIOperations::Create
Defined in:
lib/payjp/token.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from APIOperations::Create

included

Methods inherited from APIResource

class_name, #refresh, retrieve, url, #url

Methods included from APIOperations::Request

included

Methods inherited from PayjpObject

#[], #[]=, #_dump, _load, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #respond_to?, #serialize_nested_object, serialize_params, #to_hash, #to_json, #to_s, #values

Constructor Details

This class inherits a constructor from Payjp::PayjpObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Payjp::PayjpObject

Class Method Details

.tds_finish(id, params = {}, opts = {}) ⇒ Object



5
6
7
8
# File 'lib/payjp/token.rb', line 5

def self.tds_finish(id, params = {}, opts = {})
  response, opts = request(:post, url + '/' + id + '/tds_finish', params, opts)
  Util.convert_to_payjp_object(response, opts)
end

Instance Method Details

#tds_finish(params = {}, opts = {}) ⇒ Object



10
11
12
13
# File 'lib/payjp/token.rb', line 10

def tds_finish(params = {}, opts = {})
  response, opts = request(:post, tds_finish_url, params, opts)
  refresh_from(response, opts)
end

#tds_finish_urlObject



15
16
17
# File 'lib/payjp/token.rb', line 15

def tds_finish_url
  url + '/tds_finish'
end