Skip to content

Commit e6575e2

Browse files
committed
Merge branch 'release/v6.3.1' into 'master'
release/v6.3.1 into master See merge request agence-dnd/marketplace/magento-2/external/module-checkout-magento2-plugin!227
2 parents 3c8d781 + 6fee32c commit e6575e2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Gateway/Config/Config.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ public function getMethodsConfig(): array
314314
{
315315
$output = [];
316316
/** @var array $paymentMethodsConfig */
317-
$paymentMethodsConfig = $this->scopeConfig->getValue(Loader::KEY_PAYMENT, ScopeInterface::SCOPE_WEBSITE);
317+
$paymentMethodsConfig = $this->scopeConfig->getValue(Loader::KEY_PAYMENT, ScopeInterface::SCOPE_STORE);
318318

319319
/**
320320
* Get only the active CheckoutCom methods
@@ -568,12 +568,12 @@ public function isAbcRefundAfterNasMigrationActive($storeCode = null): bool
568568
}
569569

570570
/**
571-
* @param int $storeCode
571+
* @param string $storeCode
572572
* @param string $scope
573573
*
574574
* @return Environment
575575
*/
576-
public function getEnvironment(int $storeCode, string $scope): Environment
576+
public function getEnvironment(string $storeCode, string $scope): Environment
577577
{
578578
if ((int)$this->getValue('environment', null, $storeCode, $scope) === 1) {
579579
return Environment::sandbox();

Model/Service/ApiHandlerService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public function init(
181181
}
182182

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

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

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

213213
$this->checkoutApi = $api
214214
->previous()->staticKeys()

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"magento/framework": ">=100.0.1"
88
},
99
"type": "magento2-module",
10-
"version": "6.3.0",
10+
"version": "6.3.1",
1111
"autoload": {
1212
"files": [
1313
"registration.php"

0 commit comments

Comments
 (0)