lib/openpay/openpay_api.rb in openpay-1.0.4 vs lib/openpay/openpay_api.rb in openpay-1.0.5

- old
+ new

@@ -15,17 +15,18 @@ #API Endpoints API_DEV='https://sandbox-api.openpay.mx/v1/' API_PROD='https://api.openpay.mx/v1/' #by default testing environment is used - def initialize(merchant_id, private_key, production=false) + def initialize(merchant_id, private_key, production=false, timeout=90) @merchant_id=merchant_id @private_key=private_key @production=production + @timeout=timeout end def create(resource) - klass=OpenPayResourceFactory::create(resource, @merchant_id, @private_key, @production) + klass=OpenPayResourceFactory::create(resource, @merchant_id, @private_key, @production, @timeout) klass.api_hook=self klass end def OpenpayApi::base_url(production)