public function getDefaultPaymentConfig()
    {
        $configuration = [];

        $isActive = $this->enhancementHelper->isActiveDefaultPayment();
        $configuration['isActiveDefaultPayment'] = $isActive;
        if ($isActive) {
            $configuration['defaultMethod'] = $this->enhancementHelper->getDefaultMethod();
        }

        return $configuration;
    }
public function getDefaultPaymentConfig()
    {
        $configuration = [];

        $isActive = $this->enhancementHelper->isActiveDefaultPayment();
        $configuration['isActiveDefaultPayment'] = $isActive;
        if ($isActive) {
            $configuration['defaultMethod'] = $this->enhancementHelper->getDefaultMethod();
        }

        return $configuration;
    }
public function getDefaultPaymentConfig ( ) { $ configuration = [ ] ; $ isActive = $ this -> enhancementHelper -> isActiveDefaultPayment ( ) ; $ configuration [ 'isActiveDefaultPayment' ] = $ isActive ; if ( $ isActive ) { $ configuration [ 'defaultMethod' ] = $ this -> enhancementHelper -> getDefaultMethod ( ) ; } return $ configuration ; }
Returns default payment config

@return array
Returns default payment config