lib/custom/src/MShop/Service/Provider/Payment/NovalnetCredit.php
protected function getCardDetails( \Aimeos\MShop\Order\Item\Base\Iface $base, array $params )
	{
		$addresses = $base->getAddress( \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT );

		if( $this->getValue( 'address' ) && ( $addr = current( $addresses ) ) !== false )
		{
			$params['billingName'] = $addr->getFirstname() . ' ' . $addr->getLastname();
			$params['billingFirstName'] = $addr->getFirstname();
			$params['billingLastName'] = $addr->getLastname();
			$params['billingCompany'] = $addr->getCompany();
			$params['billingAddress1'] = $addr->getAddress1();
			$params['billingAddress2'] = $addr->getAddress2();
			$params['billingCity'] = $addr->getCity();
			$params['billingPostcode'] = $addr->getPostal();
			$params['billingState'] = $addr->getState();
			$params['billingCountry'] = $addr->getCountryId();
			$params['billingPhone'] = $addr->getTelephone();
			$params['billingFax'] = $addr->getTelefax();
			$params['email'] = $addr->getEmail();
		}

		$params['holder'] = ( isset( $params['novalnetcredit.holder'] ) ? $params['novalnetcredit.holder'] : '' );
		$params['number'] = ( isset( $params['novalnetcredit.number'] ) ? $params['novalnetcredit.number'] : '' );
		$params['expiryYear'] = ( isset( $params['novalnetcredit.year'] ) ? $params['novalnetcredit.year'] : '' );
		$params['expiryMonth'] = ( isset( $params['novalnetcredit.month'] ) ? $params['novalnetcredit.month'] : '' );
		$params['cvv'] = ( isset( $params['novalnetcredit.cvv'] ) ? $params['novalnetcredit.cvv'] : '' );

		return new \Omnipay\Common\CreditCard( $params );
	}
protected function getCardDetails( \Aimeos\MShop\Order\Item\Base\Iface $base, array $params )
	{
		$addresses = $base->getAddress( \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT );

		if( $this->getValue( 'address' ) && ( $addr = current( $addresses ) ) !== false )
		{
			$params['billingName'] = $addr->getFirstname() . ' ' . $addr->getLastname();
			$params['billingFirstName'] = $addr->getFirstname();
			$params['billingLastName'] = $addr->getLastname();
			$params['billingCompany'] = $addr->getCompany();
			$params['billingAddress1'] = $addr->getAddress1();
			$params['billingAddress2'] = $addr->getAddress2();
			$params['billingCity'] = $addr->getCity();
			$params['billingPostcode'] = $addr->getPostal();
			$params['billingState'] = $addr->getState();
			$params['billingCountry'] = $addr->getCountryId();
			$params['billingPhone'] = $addr->getTelephone();
			$params['billingFax'] = $addr->getTelefax();
			$params['email'] = $addr->getEmail();
		}

		$params['holder'] = ( isset( $params['novalnetcredit.holder'] ) ? $params['novalnetcredit.holder'] : '' );
		$params['number'] = ( isset( $params['novalnetcredit.number'] ) ? $params['novalnetcredit.number'] : '' );
		$params['expiryYear'] = ( isset( $params['novalnetcredit.year'] ) ? $params['novalnetcredit.year'] : '' );
		$params['expiryMonth'] = ( isset( $params['novalnetcredit.month'] ) ? $params['novalnetcredit.month'] : '' );
		$params['cvv'] = ( isset( $params['novalnetcredit.cvv'] ) ? $params['novalnetcredit.cvv'] : '' );

		return new \Omnipay\Common\CreditCard( $params );
	}
Returns an Omnipay credit card object

@param \Aimeos\MShop\Order\Item\Base\Iface $base Order base object with addresses and services
@param array $params POST parameters passed to the provider
@return \Omnipay\Common\CreditCard Credit card object