@param string $paymentHandlerGroupId

@return ShopPaymentConfigRawValue[]

@throws ConfigurationException
514337
private function getAdditionalConfig($paymentHandlerGroupId)
    {
        $additionalConfig = array();
        try {
            $systemName = $this->shopPaymentConfigLoaderDataAccess->getPaymentHandlerGroupSystemNameFromId(
                $paymentHandlerGroupId
            );
        } catch (DataAccessException $e) {
            throw new ConfigurationException(
                'Data access error while trying to load payment handler group system name for ID '.$paymentHandlerGroupId,
                $e->getCode(),
                $e
            );
        }

        if (isset($this->configProviderList[$systemName])) {
            /** @var ShopPaymentConfigProviderInterface $configProvider */
            $configProvider = $this->configProviderList[$systemName];
            $additionalConfig = $configProvider->getAdditionalConfiguration();
        }

        return $additionalConfig;
    }
1079379
protected function getCommandConfigValue(InputInterface $input)
    {
        $config = [];
        if (!empty($input->getOption('group'))) {
            $config['group'] = $input->getOption('group');
        }

        if (true === ($input->getOption('group-skip-empty'))) {
            $config['group-skip-empty'] = true;
        }

        return array_merge(
            $config,
            array_filter([
                'group-type' => $input->getOption('group-type'),
                'sort-type' => $input->getOption('sort-type'),
                'sort-direction' => $input->getOption('sort-direction'),
            ], function ($element) {
                return !is_null($element);
            })
        );
    }
1247746
public function expandMiddlewareGroup( $group ) {
		if ( ! isset( $this->middleware_groups[ $group ] ) ) {
			throw new ConfigurationException( 'Unknown middleware group "' . $group . '" used.' );
		}

		$middleware = $this->middleware_groups[ $group ];

		if ( in_array( $group, $this->middleware_groups_with_global, true ) ) {
			$middleware = array_merge( ['global'], $middleware );
		}

		return $this->expandMiddleware( $middleware );
	}
1071733
private function serializePaymentDataGooglePay(PaymentDataGooglePay $paymentData)
    {
        $result = array(
            'type'                  => $paymentData->getType(),
            'payment_method_token'  => $paymentData->getPaymentMethodToken(),
            'google_transaction_id' => $paymentData->getGoogleTransactionId(),
        );

        return $result;
    }
1311885
public function getPaymentRefunds($paymentID)
    {
        $obj = new stdClass();

        // Must be in specific order for checksum --
        $obj->Secret = $this->getSecretCode();
        $obj->MerchantID = $this->getMerchantID();
        $obj->Timestamp = $this->getTimeStamp();
        $obj->PaymentID = $paymentID;
        // -----------------------------------------  
        // Generate Checksum
        $obj->Checksum = $this->generateChecksum($obj);

        // Ask for getPaymentRefunds and get response
        $result = $this->client->getPaymentRefunds($obj);

        $result = $result->GetPaymentRefundsResult;
        $refunds = isset($result->Refunds->Refund) ? $result->Refunds->Refund : null;

        $obj->Timestamp = $result->Timestamp;

        if (!is_null($refunds)) {
            // Assign all properties of the DayStatistics object as property of mainObject
            $obj = $this->parseForChecksum($obj, $refunds, true, array("RefundID", "DateCreated", "RefundAmount", "RefundCurrency", "Status"));
        }

        // Unset properties for new Checksum
        unset($obj->Checksum);

        // Verify response data by making a new Checksum
        $Checksum = $this->generateChecksum($obj);

        // Compare Checksums
        if ($result->Checksum != $Checksum)
            throw new Exception('Data could not be verified');

        return (!is_null($refunds)) ? $this->forceArray($refunds) : array();
    }
523701
@Override
	public List<CommerceNotificationQueueEntry> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
95210
public function get($paymentId)
    {

        $this->debugData[] = __METHOD__;

        $method = 'GET';
        $uri = $this->config['apiQueryUri'] . \sprintf('/sales/%s', $paymentId);
        $options = [
            'headers' => $this->headers
        ];

        $this->debugData[][__LINE__]['method'] = $method;
        $this->debugData[][__LINE__]['uri'] = $uri;
        $this->debugData[][__LINE__]['options'] = $uri;

        try {

            $response = $this->http()->request($method, $uri, $options);

            $this->debugData[][__LINE__]['response'] = $response;

            $result = \json_decode($response->getBody()->getContents(), true);            

            if ($response->getStatusCode() === HttpStatus::Ok) {
                return $result;
            } elseif ($response->getStatusCode() == HttpStatus::BadRequest) {
                return 'status_codex';
            }

        } catch (\Exception $e) {

            $result = array(
                'code'=>$e->getCode(),
                'message'=>$e->getMessage()
                );

            $this->debugData[][__LINE__]['exception'] = $e->getMessage();

        }

        return $result;
    }
578679
@Override
	public CPOptionValue getCPOptionValueByUuidAndGroupId(String uuid,
		long groupId) throws PortalException {
		return cpOptionValuePersistence.findByUUID_G(uuid, groupId);
	}
354592
protected static function getAvailableMethodsQuery($paymentGroupId)
    {
        $query = self::getBaseQuery();
        $activePortal = self::getPortalDomainService()->getActivePortal();
        if (null !== $activePortal) {
            $query .= self::getPortalQueryRestriction($activePortal->id);
            $query .= "\nAND ";
        } else {
            $query .= "\nWHERE ";
        }
        $query .= self::getPaymentGroupQueryRestriction($paymentGroupId);

        return $query;
    }
51011
public function getOnPaymentSubmit($storeId = null)
    {
        return $this->getScopeConfig()->getValue(
            self::XML_PATH_TRACK_PAYMENT_SUBMIT,
            ScopeInterface::SCOPE_STORE,
            $storeId
        );
    }
1308305
public function getConfigData($code, $paymentMethodCode = null, $storeId = null)
    {
        if (null === $storeId) {
            $storeId = Mage::app()->getStore()->getStoreId();
        }

        if (empty($paymentMethodCode)) {
            return trim(Mage::getStoreConfig("payment/adyen_abstract/$code", $storeId));
        }

        return trim(Mage::getStoreConfig("payment/$paymentMethodCode/$code", $storeId));
    }
743037
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommercePaymentMethodGroupRel addCommercePaymentMethodGroupRel(
		CommercePaymentMethodGroupRel commercePaymentMethodGroupRel) {
		commercePaymentMethodGroupRel.setNew(true);

		return commercePaymentMethodGroupRelPersistence.update(commercePaymentMethodGroupRel);
	}
1049144
public static List<CommerceWarehouse> findByG_C_P(long groupId,
		long commerceCountryId, boolean primary) {
		return getPersistence().findByG_C_P(groupId, commerceCountryId, primary);
	}
856175
@Override
	public List<CommerceUserSegmentEntry> filterFindByGroupId(long groupId) {
		return filterFindByGroupId(groupId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
949488
protected function getPayPalConfig()
    {
        if (is_null($this->payPalConfig)) {
            $this->payPalConfig = oxNew(\OxidEsales\PayPalModule\Core\Config::class);
        }

        return $this->payPalConfig;
    }
724914
public function findAllForGroup($groupId)
    {
        if (!$groupId) {
            return [];
        }

        if (!is_array($groupId)) {
            $groupId = [$groupId];
        }

        $cacheKey = join('_', $groupId);

        $permissions = Cache::remember($cacheKey, function () use ($groupId) {
            return $this
                ->find('list', [
                    'keyField' => 'path',
                    'valueField' => 'allowed'
                ])
                ->where([
                    'group_id IN' => $groupId,
                    'allowed >' => 0
                ])
                ->order('allowed DESC')
                ->hydrate(false)
                ->toArray();
        }, 'wasabi/core/group_permissions');

        return $permissions;
    }
379608
@Override
	public List<CommerceDiscount> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}