Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
ci/magento-coding-standard
.DS_Store
1 change: 1 addition & 0 deletions Model/AbstractRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ protected function sendRequest()
HttpConstants::HEADER_CONTENT_TYPE => HttpConstants::CONTENT_TYPE_APPLICATION_JSON,
HttpConstants::HEADER_BALANCE_X_API_KEY => $this->_balancepayConfig->getApiKey(),
HttpConstants::HEADER_BALANCE_SOURCE => HttpConstants::BALANCE_SOURCE_MAGENTO,
HttpConstants::HTTP_USER_AGENT => HttpConstants::HTTP_HARDCODED_USER_AGENT,

];
$this->_curl->setHeaders($headers);
Expand Down
2 changes: 2 additions & 0 deletions Model/HttpConstants.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ class HttpConstants

public const CONTENT_TYPE_APPLICATION_JSON = 'application/json';
public const BALANCE_SOURCE_MAGENTO = 'magento';
public const HTTP_USER_AGENT = 'User-Agent';
public const HTTP_HARDCODED_USER_AGENT = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Magento/20100101 Firefox/15.0.1';
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"laminas/laminas-crypt": "^3.4.0"
},
"type": "magento2-module",
"version": "1.4.0",
"version": "1.4.4",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Balancepay_Balancepay" setup_version="1.4.0">
<module name="Balancepay_Balancepay" setup_version="1.4.4">
<sequence>
<module name="Magento_Sales"/>
<module name="Magento_Payment"/>
Expand Down