lib/custom/src/MShop/Service/Provider/Payment/OmniPay.php
protected function translateStatus( $status )
	{
		if( !interface_exists( '\Omnipay\Common\Message\NotificationInterface' ) ) {
			return \Aimeos\MShop\Order\Item\Base::PAY_REFUSED;
		}

		switch( $status )
		{
			case \Omnipay\Common\Message\NotificationInterface::STATUS_COMPLETED:
				return \Aimeos\MShop\Order\Item\Base::PAY_RECEIVED;
			case \Omnipay\Common\Message\NotificationInterface::STATUS_PENDING:
				return \Aimeos\MShop\Order\Item\Base::PAY_PENDING;
			case \Omnipay\Common\Message\NotificationInterface::STATUS_FAILED:
				return \Aimeos\MShop\Order\Item\Base::PAY_REFUSED;
		}
	}
protected function translateStatus( $status )
	{
		if( !interface_exists( '\Omnipay\Common\Message\NotificationInterface' ) ) {
			return \Aimeos\MShop\Order\Item\Base::PAY_REFUSED;
		}

		switch( $status )
		{
			case \Omnipay\Common\Message\NotificationInterface::STATUS_COMPLETED:
				return \Aimeos\MShop\Order\Item\Base::PAY_RECEIVED;
			case \Omnipay\Common\Message\NotificationInterface::STATUS_PENDING:
				return \Aimeos\MShop\Order\Item\Base::PAY_PENDING;
			case \Omnipay\Common\Message\NotificationInterface::STATUS_FAILED:
				return \Aimeos\MShop\Order\Item\Base::PAY_REFUSED;
		}
	}
Translates the Omnipay status into the Aimeos payment status value

@param string $status Omnipay payment status
@return integer|null Aimeos payment status value or null for no new status