File tree Expand file tree Collapse file tree 5 files changed +6
-2
lines changed Expand file tree Collapse file tree 5 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11.idea
22ci /magento-coding-standard
3+ .DS_Store
Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ protected function sendRequest()
172172 HttpConstants::HEADER_CONTENT_TYPE => HttpConstants::CONTENT_TYPE_APPLICATION_JSON ,
173173 HttpConstants::HEADER_BALANCE_X_API_KEY => $ this ->_balancepayConfig ->getApiKey (),
174174 HttpConstants::HEADER_BALANCE_SOURCE => HttpConstants::BALANCE_SOURCE_MAGENTO ,
175+ HttpConstants::HTTP_USER_AGENT => HttpConstants::HTTP_HARDCODED_USER_AGENT ,
175176
176177 ];
177178 $ this ->_curl ->setHeaders ($ headers );
Original file line number Diff line number Diff line change @@ -10,4 +10,6 @@ class HttpConstants
1010
1111 public const CONTENT_TYPE_APPLICATION_JSON = 'application/json ' ;
1212 public const BALANCE_SOURCE_MAGENTO = 'magento ' ;
13+ public const HTTP_USER_AGENT = 'User-Agent ' ;
14+ public const HTTP_HARDCODED_USER_AGENT = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Magento/20100101 Firefox/15.0.1 ' ;
1315}
Original file line number Diff line number Diff line change 66 "laminas/laminas-crypt" : " ^3.4.0"
77 },
88 "type" : " magento2-module" ,
9- "version" : " 1.4.0 " ,
9+ "version" : " 1.4.4 " ,
1010 "license" : [
1111 " OSL-3.0" ,
1212 " AFL-3.0"
Original file line number Diff line number Diff line change 1111 */
1212-->
1313<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:Module/etc/module.xsd" >
14- <module name =" Balancepay_Balancepay" setup_version =" 1.4.0 " >
14+ <module name =" Balancepay_Balancepay" setup_version =" 1.4.4 " >
1515 <sequence >
1616 <module name =" Magento_Sales" />
1717 <module name =" Magento_Payment" />
You can’t perform that action at this time.
0 commit comments