controller/frontend/src/Controller/Frontend/Subscription/Standard.php
public function cancel( $id )
	{
		$item = $this->manager->getItem( $id );
		$item = $item->setDateEnd( $item->getDateNext() )
			->setReason( \Aimeos\MShop\Subscription\Item\Iface::REASON_CANCEL );

		return $this->manager->saveItem( $item );
	}
public function cancel( $id )
	{
		$item = $this->manager->getItem( $id );
		$item = $item->setDateEnd( $item->getDateNext() )
			->setReason( \Aimeos\MShop\Subscription\Item\Iface::REASON_CANCEL );

		return $this->manager->saveItem( $item );
	}
public function cancel ( $ id ) { $ item = $ this -> manager -> getItem ( $ id ) ; $ item = $ item -> setDateEnd ( $ item -> getDateNext ( ) ) -> setReason ( \ Aimeos \ MShop \ Subscription \ Item \ Iface :: REASON_CANCEL ) ; return $ this -> manager -> saveItem ( $ item ) ; }
Cancels an active subscription

@param string $id Unique subscription ID
@return \Aimeos\MShop\Subscription\Item\Iface Canceled subscription item
Cancels an active subscription