Skip to content

Commit

Permalink
Merge branch 'release/v6.3.1' into 'master'
Browse files Browse the repository at this point in the history
release/v6.3.1 into master

See merge request agence-dnd/marketplace/magento-2/external/module-checkout-magento2-plugin!227
  • Loading branch information
DnD-Behou committed Aug 14, 2024
2 parents 3c8d781 + 6fee32c commit e6575e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Gateway/Config/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public function getMethodsConfig(): array
{
$output = [];
/** @var array $paymentMethodsConfig */
$paymentMethodsConfig = $this->scopeConfig->getValue(Loader::KEY_PAYMENT, ScopeInterface::SCOPE_WEBSITE);
$paymentMethodsConfig = $this->scopeConfig->getValue(Loader::KEY_PAYMENT, ScopeInterface::SCOPE_STORE);

/**
* Get only the active CheckoutCom methods
Expand Down Expand Up @@ -568,12 +568,12 @@ public function isAbcRefundAfterNasMigrationActive($storeCode = null): bool
}

/**
* @param int $storeCode
* @param string $storeCode
* @param string $scope
*
* @return Environment
*/
public function getEnvironment(int $storeCode, string $scope): Environment
public function getEnvironment(string $storeCode, string $scope): Environment
{
if ((int)$this->getValue('environment', null, $storeCode, $scope) === 1) {
return Environment::sandbox();
Expand Down
4 changes: 2 additions & 2 deletions Model/Service/ApiHandlerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public function init(
}

$service = $this->scopeConfig->getValue(ConfigService::SERVICE_CONFIG_PATH, $scope, $storeCode);
$environment = $this->config->getEnvironment((int)$storeCode, $scope);
$environment = $this->config->getEnvironment($storeCode, $scope);
$api = CheckoutSdk::builder();

if ($service === ConfigService::SERVICE_ABC) {
Expand All @@ -208,7 +208,7 @@ public function initAbcForRefund(
$publicKey = $this->config->getValue('abc_refund_public_key', null, $storeCode, $scope);

$api = CheckoutSdk::builder();
$environment = $this->config->getEnvironment((int)$storeCode, $scope);
$environment = $this->config->getEnvironment($storeCode, $scope);

$this->checkoutApi = $api
->previous()->staticKeys()
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"magento/framework": ">=100.0.1"
},
"type": "magento2-module",
"version": "6.3.0",
"version": "6.3.1",
"autoload": {
"files": [
"registration.php"
Expand Down

0 comments on commit e6575e2

Please sign in to comment.