Skip to content

Commit

Permalink
Merge pull request #48 from Dintero/master-http-client-timeout
Browse files Browse the repository at this point in the history
Http client timeout increased
  • Loading branch information
chaikovskyia authored Jan 24, 2022
2 parents c07f1c6 + c313d11 commit ddd4440
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Model/Api/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ private function initRequest($endpoint, $token = null)
'Dintero-System-Name' => __('Magento'),
'Dintero-System-Version' => $this->getSystemMeta()->getVersion(),
'Dintero-System-Plugin-Name' => 'Dintero.Checkout.Magento.V2',
'Dintero-System-Plugin-Version' => '1.6.12',
'Dintero-System-Plugin-Version' => '1.6.13',
];

if ($token && $token instanceof Token) {
Expand All @@ -264,7 +264,8 @@ private function initRequest($endpoint, $token = null)
->setUri($endpoint)
->setHeaders($defaultHeaders)
->shouldEncode(false)
->setMethod(\Zend_Http_Client::POST);
->setMethod(\Zend_Http_Client::POST)
->setClientConfig(['timeout' => 30]);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
"Dintero\\Checkout\\": ""
}
},
"version": "1.6.12"
"version": "1.6.13"
}
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Dintero_Checkout" setup_version="1.6.12">
<module name="Dintero_Checkout" setup_version="1.6.13">
<sequence>
<module name="Magento_Sales"/>
<module name="Magento_Checkout"/>
Expand Down

0 comments on commit ddd4440

Please sign in to comment.