lib/payjp/token.rb in payjp-0.0.14 vs lib/payjp/token.rb in payjp-0.0.16
- old
+ new
@@ -1,5 +1,19 @@
module Payjp
class Token < APIResource
include Payjp::APIOperations::Create
+
+ 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
+
+ def tds_finish(params = {}, opts = {})
+ response, opts = request(:post, tds_finish_url, params, opts)
+ refresh_from(response, opts)
+ end
+
+ def tds_finish_url
+ url + '/tds_finish'
+ end
end
end