class Everypay::Customer
Public Class Methods
create(payload)
click to toggle source
Create a new customer.
Available payload parameters are:
For customers from credit / debit cards, card info are required.
- card_number: A valid credit /debit card number. [Required] - expiration_month: Integer representation of month. [Required] - expiration_year: Integer represantation of a valid expiration year. [Required] - cvv: Card verification value. Three or four (American express) digits. [Required] - holder_name: First and last name of the card holder. [Required]
For customers from card token, a valid card token required. Card tokens can be obtained from Token::create
api calls.
- token [Required].
Optional params.
- description: A decription for this customer max 255 chars. [Optional] - email: Customer email. [Optional] - full_name: Customer full name. [Optional]
Calls superclass method
# File lib/everypay/customer.rb, line 28 def create payload super end
delete(token)
click to toggle source
Calls superclass method
# File lib/everypay/customer.rb, line 36 def delete token super end
update(token, payload)
click to toggle source
Calls superclass method
# File lib/everypay/customer.rb, line 32 def update token, payload super end
Protected Class Methods
resource()
click to toggle source
# File lib/everypay/customer.rb, line 42 def resource 'customers' end