Method: ProcessOut::Customer#delete_token

Defined in:
lib/processout/customer.rb

#delete_token(token_id, options = {}) ⇒ Object

Delete a customer’s token by its ID. Params:

token_id

ID of the token

options

Hash of options



571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
# File 'lib/processout/customer.rb', line 571

def delete_token(token_id, options = {})
  self.prefill(options)

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

  }

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

  
  return_values[0]
end