controller/jobs/src/Controller/Jobs/Subscription/Process/Renew/Standard.php
protected function createPayment( \Aimeos\MShop\Context\Item\Iface $context, \Aimeos\MShop\Order\Item\Base\Iface $basket,
		\Aimeos\MShop\Order\Item\Iface $invoice )
	{
		$manager = \Aimeos\MShop::create( $context, 'service' );

		foreach( $basket->getService( \Aimeos\MShop\Order\Item\Base\Service\Base::TYPE_PAYMENT ) as $service )
		{
			$item = $manager->getItem( $service->getServiceId() );
			$provider = $manager->getProvider( $item, 'payment' );

			$provider->repay( $invoice );
		}
	}
protected function createPayment( \Aimeos\MShop\Context\Item\Iface $context, \Aimeos\MShop\Order\Item\Base\Iface $basket,
		\Aimeos\MShop\Order\Item\Iface $invoice )
	{
		$manager = \Aimeos\MShop::create( $context, 'service' );

		foreach( $basket->getService( \Aimeos\MShop\Order\Item\Base\Service\Base::TYPE_PAYMENT ) as $service )
		{
			$item = $manager->getItem( $service->getServiceId() );
			$provider = $manager->getProvider( $item, 'payment' );

			$provider->repay( $invoice );
		}
	}
protected function createPayment ( \ Aimeos \ MShop \ Context \ Item \ Iface $ context , \ Aimeos \ MShop \ Order \ Item \ Base \ Iface $ basket , \ Aimeos \ MShop \ Order \ Item \ Iface $ invoice ) { $ manager = \ Aimeos \ MShop :: create ( $ context , 'service' ) ; foreach ( $ basket -> getService ( \ Aimeos \ MShop \ Order \ Item \ Base \ Service \ Base :: TYPE_PAYMENT ) as $ service ) { $ item = $ manager -> getItem ( $ service -> getServiceId ( ) ) ; $ provider = $ manager -> getProvider ( $ item , 'payment' ) ; $ provider -> repay ( $ invoice ) ; } }
Creates a new payment for the given order and invoice

@param \Aimeos\MShop\Context\Item\Iface Context object
@param \Aimeos\MShop\Order\Item\Base\Iface $basket Complete order with product, addresses and services
@param \Aimeos\MShop\Order\Item\Iface New invoice item associated to the order
Creates a new payment for the given order and invoice