lib/OpenPay/openpay_api.rb in openpay-1.0.1 vs lib/OpenPay/openpay_api.rb in openpay-1.0.2
- old
+ new
@@ -1,26 +1,23 @@
require 'logger'
-require 'open_pay_resource_factory'
require 'base64'
require 'rest-client'
require 'uri'
-require 'openpay/errors/openpay_exception'
+require 'openpay/open_pay_resource_factory'
+require 'errors/openpay_exception'
LOG= Logger.new(STDOUT)
-
#change to Logger::DEBUG if need trace information
#due the nature of the information, we recommend to never use a log file when in debug
-LOG.level=Logger::INFO
+LOG.level=Logger::ERROR
class OpenpayApi
-
#API Endpoints
API_DEV='https://sandbox-api.openpay.mx/v1/'
API_PROD='https://api.openpay.mx'
-
#by default the testing environment is used
def initialize(merchant_id, private_key,production=false)
@merchant_id=merchant_id
@private_key=private_key
\ No newline at end of file