lib/custom/src/MShop/Service/Provider/Payment/NovalnetSepa.php
protected function getData( \Aimeos\MShop\Order\Item\Base\Iface $base, $orderid, array $params )
	{
		$urls = $this->getPaymentUrls();
		$card = $this->getCardDetails( $base, $params );
		$desc = $this->getContext()->getI18n()->dt( 'mshop', 'Order %1$s' );
		$addresses = $base->getAddress( \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT );

		if( ( $address = current( $addresses ) ) !== false ) {
			$langid = $address->getLanguageId();
		} else {
			$langid = $context->getLocale()->getLanguageId();
		}

		$data = array(
			'token' => '',
			'card' => $card,
			'language' => $langid,
			'transactionId' => $orderid,
			'description' => sprintf( $desc, $orderid ),
			'amount' => $this->getAmount( $base->getPrice() ),
			'currency' => $base->getLocale()->getCurrencyId(),
			'clientIp' => $this->getValue( 'client.ipaddress' ),
			'bic' => ( isset( $params['novalnetsepa.bic'] ) ? $params['novalnetsepa.bic'] : '' ),
			'iban' => ( isset( $params['novalnetsepa.iban'] ) ? $params['novalnetsepa.iban'] : '' ),
			'bankaccount_holder' => ( isset( $params['novalnetsepa.holder'] ) ? $params['novalnetsepa.holder'] : '' ),
		) + $urls;

		return $data;
	}
protected function getData( \Aimeos\MShop\Order\Item\Base\Iface $base, $orderid, array $params )
	{
		$urls = $this->getPaymentUrls();
		$card = $this->getCardDetails( $base, $params );
		$desc = $this->getContext()->getI18n()->dt( 'mshop', 'Order %1$s' );
		$addresses = $base->getAddress( \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT );

		if( ( $address = current( $addresses ) ) !== false ) {
			$langid = $address->getLanguageId();
		} else {
			$langid = $context->getLocale()->getLanguageId();
		}

		$data = array(
			'token' => '',
			'card' => $card,
			'language' => $langid,
			'transactionId' => $orderid,
			'description' => sprintf( $desc, $orderid ),
			'amount' => $this->getAmount( $base->getPrice() ),
			'currency' => $base->getLocale()->getCurrencyId(),
			'clientIp' => $this->getValue( 'client.ipaddress' ),
			'bic' => ( isset( $params['novalnetsepa.bic'] ) ? $params['novalnetsepa.bic'] : '' ),
			'iban' => ( isset( $params['novalnetsepa.iban'] ) ? $params['novalnetsepa.iban'] : '' ),
			'bankaccount_holder' => ( isset( $params['novalnetsepa.holder'] ) ? $params['novalnetsepa.holder'] : '' ),
		) + $urls;

		return $data;
	}
protected function getData ( \ Aimeos \ MShop \ Order \ Item \ Base \ Iface $ base , $ orderid , array $ params ) { $ urls = $ this -> getPaymentUrls ( ) ; $ card = $ this -> getCardDetails ( $ base , $ params ) ; $ desc = $ this -> getContext ( ) -> getI18n ( ) -> dt ( 'mshop' , 'Order %1$s' ) ; $ addresses = $ base -> getAddress ( \ Aimeos \ MShop \ Order \ Item \ Base \ Address \ Base :: TYPE_PAYMENT ) ; if ( ( $ address = current ( $ addresses ) ) !== false ) { $ langid = $ address -> getLanguageId ( ) ; } else { $ langid = $ context -> getLocale ( ) -> getLanguageId ( ) ; } $ data = array ( 'token' => '' , 'card' => $ card , 'language' => $ langid , 'transactionId' => $ orderid , 'description' => sprintf ( $ desc , $ orderid ) , 'amount' => $ this -> getAmount ( $ base -> getPrice ( ) ) , 'currency' => $ base -> getLocale ( ) -> getCurrencyId ( ) , 'clientIp' => $ this -> getValue ( 'client.ipaddress' ) , 'bic' => ( isset ( $ params [ 'novalnetsepa.bic' ] ) ? $ params [ 'novalnetsepa.bic' ] : '' ) , 'iban' => ( isset ( $ params [ 'novalnetsepa.iban' ] ) ? $ params [ 'novalnetsepa.iban' ] : '' ) , 'bankaccount_holder' => ( isset ( $ params [ 'novalnetsepa.holder' ] ) ? $ params [ 'novalnetsepa.holder' ] : '' ) , ) + $ urls ; return $ data ; }
Returns the data passed to the Omnipay library

@param \Aimeos\MShop\Order\Item\Base\Iface $base Basket object
@param $orderid Unique order ID
@param array $params Request parameter if available
Returns the data passed to the Omnipay library