Method: ProcessOut::Token#delete

Defined in:
lib/processout/token.rb

#delete(options = {}) ⇒ Object

Delete a customer token Params:

options

Hash of options



496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
# File 'lib/processout/token.rb', line 496

def delete(options = {})
  self.prefill(options)

  request = Request.new(@client)
  path    = "/customers/" + CGI.escape(@customer_id) + "/tokens/" + CGI.escape(@id) + ""
  data    = {

  }

  response = Response.new(request.delete(path, data, options))
  return_values = Array.new
  
  return_values.push(response.success)

  
  return_values[0]
end