protected function getData( \Aimeos\MShop\Order\Item\Base\Iface $base, $orderid, array $params )
	{
		$lines = [];

		foreach( $base->getProducts() as $product )
		{
			$list = $product->toArray();

			$lines[] = new \Omnipay\Payone\Extend\Item([
				'id' => $list['order.base.product.prodcode'],
				'name' => $product->getName(),
				'itemType' => 'goods', // Available types: goods, shipping etc.
				'quantity' => $product->getQuantity(),
				'price' => $product->getPrice()->getValue(),
				'vat' => (int) $product->getPrice()->getTaxRate(),
			]);
		}

		foreach( $base->getService( 'delivery' ) as $delivery )
		{
			if( $delivery->getPrice()->getCosts() != '0.00' )
			{
				$lines[] = new \Omnipay\Payone\Extend\Item([
					'id' => $delivery->getId(),
					'name' => $delivery->getName(),
					'itemType' => 'shipment',
					'quantity' => 1,
					'price' => $delivery->getPrice()->getCosts(),
					'vat' => (int) $delivery->getPrice()->getTaxRate(),
				]);
			}
		}

		$data = parent::getData( $base, $orderid, $params );
		$data['items'] = new \Omnipay\Common\ItemBag( $lines );
		$data['accessMethod'] = 'classic';

		return $data;
	}
protected function getData( \Aimeos\MShop\Order\Item\Base\Iface $base, $orderid, array $params )
	{
		$lines = [];

		foreach( $base->getProducts() as $product )
		{
			$list = $product->toArray();

			$lines[] = new \Omnipay\Payone\Extend\Item([
				'id' => $list['order.base.product.prodcode'],
				'name' => $product->getName(),
				'itemType' => 'goods', // Available types: goods, shipping etc.
				'quantity' => $product->getQuantity(),
				'price' => $product->getPrice()->getValue(),
				'vat' => (int) $product->getPrice()->getTaxRate(),
			]);
		}

		foreach( $base->getService( 'delivery' ) as $delivery )
		{
			if( $delivery->getPrice()->getCosts() != '0.00' )
			{
				$lines[] = new \Omnipay\Payone\Extend\Item([
					'id' => $delivery->getId(),
					'name' => $delivery->getName(),
					'itemType' => 'shipment',
					'quantity' => 1,
					'price' => $delivery->getPrice()->getCosts(),
					'vat' => (int) $delivery->getPrice()->getTaxRate(),
				]);
			}
		}

		$data = parent::getData( $base, $orderid, $params );
		$data['items'] = new \Omnipay\Common\ItemBag( $lines );
		$data['accessMethod'] = 'classic';

		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