Module: TransactPro

Extended by:
TransactPro
Included in:
TransactPro
Defined in:
lib/transact_pro.rb,
lib/transact_pro/version.rb,
lib/transact_pro/request_specs.rb

Defined Under Namespace

Modules: RequestSpecs Classes: Gateway, Request, Response

Constant Summary collapse

DEFAULTS =
{
  TEST: false,
  LOOSENED_VALIDATIONS: false,
  PRODUCTION_ENV: {
    API_URI: "https://www2.1stpayments.net/gwprocessor2.php",
    HOSTED_FIELDS_JS_URI: "https://www2.1stpayments.net/hostedfields/hosted-fields-1.0.5.js",
    HOSTED_FIELDS_SUBMIT_URI: "https://www2.1stpayments.net",
  },
  TEST_ENV: {
    API_URI: "https://gw2sandbox.tpro.lv:8443/gw2test/gwprocessor2.php",
    HOSTED_FIELDS_JS_URI: "https://gw2sandbox.tpro.lv:8443/gw2test/hostedfields/hosted-fields-1.0.5.js",
    HOSTED_FIELDS_SUBMIT_URI: "https://gw2sandbox.tpro.lv:8443/gw2test",
  }
}.freeze
VERSION =
"1.1.2"

Instance Method Summary collapse

Instance Method Details

#rootObject



28
29
30
# File 'lib/transact_pro.rb', line 28

def root
  @@root ||= Pathname.new(Gem::Specification.find_by_name("transact_pro").gem_dir)
end