class Ipay::Setup

Attributes

debug[RW]
host[RW]
password[RW]
path[RW]
username[RW]

Public Class Methods

new(username=nil, password=nil, debug=false) click to toggle source
# File lib/ipay/setup.rb, line 9
def initialize(username=nil, password=nil, debug=false)
    @host = 'https://eco.credibanco.com/'
    if debug
            @host = 'https://ecouat.credibanco.com/'
    end
  
  @path = 'payment/rest/'

  @debug = debug

  raise Error, 'You must provide a iPay Password' if not password
  raise Error, 'You must provide a iPay USERNAME' if not username
  @password = password
  @username = username
end