lib/custom/src/MShop/Service/Provider/Payment/NovalnetSepa.php
public function getConfigFE( \Aimeos\MShop\Order\Item\Base\Iface $basket )
	{
		$list = [];
		$feconfig = $this->feConfig;

		try
		{
			$code = $this->getServiceItem()->getCode();
			$service = $basket->getService( \Aimeos\MShop\Order\Item\Base\Service\Base::TYPE_PAYMENT, $code );

			foreach( $service->getAttributeItems() as $item )
			{
				if( isset( $feconfig[$item->getCode()] ) ) {
					$feconfig[$item->getCode()]['default'] = $item->getValue();
				}
			}
		}
		catch( \Aimeos\MShop\Order\Exception $e ) {; } // If payment isn't available yet


		$addresses = $basket->getAddress( \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT );

		if( ( $address = current( $addresses ) ) !== false )
		{
			if( $feconfig['novalnetsepa.holder']['default'] == ''
				&& ( $fn = $address->getFirstname() ) !== '' && ( $ln = $address->getLastname() ) !== ''
			) {
				$feconfig['novalnetsepa.holder']['default'] = $fn . ' ' . $ln;
			}
		}


		foreach( $feconfig as $key => $config ) {
			$list[$key] = new \Aimeos\MW\Criteria\Attribute\Standard( $config );
		}

		return $list;
	}
public function getConfigFE( \Aimeos\MShop\Order\Item\Base\Iface $basket )
	{
		$list = [];
		$feconfig = $this->feConfig;

		try
		{
			$code = $this->getServiceItem()->getCode();
			$service = $basket->getService( \Aimeos\MShop\Order\Item\Base\Service\Base::TYPE_PAYMENT, $code );

			foreach( $service->getAttributeItems() as $item )
			{
				if( isset( $feconfig[$item->getCode()] ) ) {
					$feconfig[$item->getCode()]['default'] = $item->getValue();
				}
			}
		}
		catch( \Aimeos\MShop\Order\Exception $e ) {; } // If payment isn't available yet


		$addresses = $basket->getAddress( \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT );

		if( ( $address = current( $addresses ) ) !== false )
		{
			if( $feconfig['novalnetsepa.holder']['default'] == ''
				&& ( $fn = $address->getFirstname() ) !== '' && ( $ln = $address->getLastname() ) !== ''
			) {
				$feconfig['novalnetsepa.holder']['default'] = $fn . ' ' . $ln;
			}
		}


		foreach( $feconfig as $key => $config ) {
			$list[$key] = new \Aimeos\MW\Criteria\Attribute\Standard( $config );
		}

		return $list;
	}
Returns the configuration attribute definitions of the provider to generate a list of available fields and
rules for the value of each field in the frontend.

@param \Aimeos\MShop\Order\Item\Base\Iface $basket Basket object
@return array List of attribute definitions implementing \Aimeos\MW\Common\Critera\Attribute\Iface