module PayuZa

Constants

VERSION

Attributes

api_version[RW]
environment[RW]
password_digest[RW]
safe_key[RW]
soap_password[RW]
soap_username[RW]
wsdl_endpoints[RW]

Public Instance Methods

configure() { |self| ... } click to toggle source
# File lib/payu_za.rb, line 15
def configure
  yield self
end
default!() click to toggle source
# File lib/payu_za.rb, line 19
def default!
  PayuZa.configure do |config|
    config.api_version = 'ONE_ZERO'
    config.wsdl_endpoints = {
      development: 'https://staging.payu.co.za/service/PayUAPI?wsdl',
      staging: 'https://staging.payu.co.za/service/PayUAPI?wsdl',
      production: 'https://secure.payu.co.za/service/PayUAPI?wsdl'
    }

    config.environment = :staging
  end
end
wsdl_endpoint() click to toggle source
# File lib/payu_za.rb, line 35
def wsdl_endpoint
  wsdl_endpoints[environment]
end