Module: Paysio

Defined in:
lib/paysio.rb,
lib/paysio/form.rb,
lib/paysio/json.rb,
lib/paysio/client.rb,
lib/paysio/errors.rb,
lib/paysio/version.rb,
lib/paysio/resource.rb,
lib/paysio/actions/find.rb,
lib/paysio/actions/list.rb,
lib/paysio/resources/log.rb,
lib/paysio/actions/create.rb,
lib/paysio/actions/update.rb,
lib/paysio/resources/list.rb,
lib/paysio/actions/destroy.rb,
lib/paysio/resources/event.rb,
lib/paysio/resources/charge.rb,
lib/paysio/resources/coupon.rb,
lib/paysio/resources/payout.rb,
lib/paysio/resources/reward.rb,
lib/paysio/resources/wallet.rb,
lib/paysio/resources/customer.rb

Defined Under Namespace

Modules: Actions, Errors Classes: Charge, Client, Coupon, Customer, Event, Form, JSON, List, Log, Payout, Resource, Reward, Wallet

Constant Summary collapse

VERSION =
'1.0.10'
@@api_key =
nil
@@api_base =
'api.paysio.com'
@@api_version =
'v1'
@@publishable_key =
nil

Class Method Summary collapse

Class Method Details

.api_url(path = '') ⇒ Object



43
44
45
# File 'lib/paysio.rb', line 43

def self.api_url(path = '')
  "https://#{api_key}@#{api_base}/#{api_version}#{path}"
end

.static_url(path = '') ⇒ Object



47
48
49
# File 'lib/paysio.rb', line 47

def self.static_url(path = '')
  "https://#{api_base}/static/#{api_version}#{path}"
end