Skip to content

Commit

Permalink
6.39.1 (FINAL RELEASE)
Browse files Browse the repository at this point in the history
  • Loading branch information
m2epro committed May 10, 2023
1 parent 4f2e882 commit 411256b
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class Ess_M2ePro_Model_Amazon_Account_Server_Update
/**
* @param Ess_M2ePro_Model_Amazon_Account $account
* @param string $oAuthCode
*
* @param string $merchantId
* @return void
*/
public function process(Ess_M2ePro_Model_Amazon_Account $account, $oAuthCode)
public function process(Ess_M2ePro_Model_Amazon_Account $account, $oAuthCode, $merchantId)
{
/** @var Ess_M2ePro_Model_Amazon_Connector_Dispatcher $dispatcher */
$dispatcher = Mage::getModel('M2ePro/Amazon_Connector_Dispatcher');
Expand All @@ -28,7 +28,7 @@ public function process(Ess_M2ePro_Model_Amazon_Account $account, $oAuthCode)
'account_server_hash' => $account->getServerHash(),
'oauth_code' => $oAuthCode,
'marketplace_id' => $account->getMarketplace()->getNativeId(),
'merchant_id' => $account->getMerchantId(),
'merchant_id' => $merchantId,
)
);

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Ess/M2ePro/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "m2epro/magento1-extension",
"description": "M2E Pro is a Magento trusted (TM), award-winning extension, which allows merchants of all sizes to fully integrate Magento based system(s) into eBay/Amazon/Walmart platforms.",
"type": "magento-module",
"version": "6.39.0",
"version": "6.39.1",
"license": "proprietary",
"keywords": ["ebay", "amazon", "walmart", "magento"],
"homepage": "https://www.m2epro.com/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,11 @@ public function afterGetTokenAction()
);
}

return $this->processExistingAccount((int)$params['account_id'], (string)$params['spapi_oauth_code']);
return $this->processExistingAccount(
(int)$params['account_id'],
(string)$params['spapi_oauth_code'],
(string)$params['selling_partner_id']
);
}

/**
Expand Down Expand Up @@ -344,9 +348,10 @@ protected function processNewAccount($sellingPartnerId, $spApiOAuthCode, $title,
/**
* @param int $accountId
* @param string $spApiOAuthCode
* @return Ess_M2ePro_Adminhtml_Amazon_AccountController|Mage_Adminhtml_Controller_Action
* @param string $sellingPartnerId
* @return Ess_M2ePro_Adminhtml_Amazon_AccountController|Mage_Adminhtml_Controller_Action|null
*/
private function processExistingAccount($accountId, $spApiOAuthCode)
private function processExistingAccount($accountId, $spApiOAuthCode, $sellingPartnerId)
{
try {
/** @var Ess_M2ePro_Model_Account $account */
Expand All @@ -356,7 +361,8 @@ private function processExistingAccount($accountId, $spApiOAuthCode)
$serverUpdateAccount = Mage::getModel('M2ePro/Amazon_Account_Server_Update');
$serverUpdateAccount->process(
$account->getChildObject(),
$spApiOAuthCode
$spApiOAuthCode,
$sellingPartnerId
);
} catch (Exception $exception) {
Mage::helper('M2ePro/Module_Exception')->process($exception);
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Ess/M2ePro/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<Ess_M2ePro>
<version>6.39.0</version>
<version>6.39.1</version>
</Ess_M2ePro>
</modules>
<default>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

/**
* @author M2E Pro Developers Team
* @copyright M2E LTD
* @license Commercial use is forbidden
*/

class Ess_M2ePro_Sql_Upgrade_v6_39_0__v6_39_1_Config extends Ess_M2ePro_Model_Upgrade_Feature_AbstractConfig
{
public function getFeaturesList()
{
return array();
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "m2epro/magento1-extension",
"description": "M2E Pro is a Magento trusted (TM), award-winning extension, which allows merchants of all sizes to fully integrate Magento based system(s) into eBay/Amazon/Walmart platforms.",
"type": "magento-module",
"version": "6.39.0",
"version": "6.39.1",
"license": "proprietary",
"keywords": ["ebay", "amazon", "walmart", "magento"],
"homepage": "https://www.m2epro.com/",
Expand Down

0 comments on commit 411256b

Please sign in to comment.