class ActiveWepay::Account

Public Class Methods

create(options) click to toggle source
# File lib/activewepay.rb, line 94
def self.create(options)
  account = self.new(options)

  theme = { name: 'Black and White', primary_color: 'FFFFFF', secondary_color: '000000', background_color: 'FFFFFF', button_color: 'FFFFFF' }
  account.call('/account/create', account.oauth_token, {
    :name => account.name,
    :description => 'Automatically generated by Vocalem',
    :theme_object => theme 
  })
end