public function getPaymentModuleInstance()
    {
        if (null === $paymentModule = ModuleQuery::create()->findPk($this->getPaymentModuleId())) {
            throw new TheliaProcessException("Payment module ID=" . $this->getPaymentModuleId() . " was not found.");
        }

        return $paymentModule->createInstance();
    }
public function getPaymentModuleInstance()
    {
        if (null === $paymentModule = ModuleQuery::create()->findPk($this->getPaymentModuleId())) {
            throw new TheliaProcessException("Payment module ID=" . $this->getPaymentModuleId() . " was not found.");
        }

        return $paymentModule->createInstance();
    }
public function getPaymentModuleInstance ( ) { if ( null === $ paymentModule = ModuleQuery :: create ( ) -> findPk ( $ this -> getPaymentModuleId ( ) ) ) { throw new TheliaProcessException ( "Payment module ID=" . $ this -> getPaymentModuleId ( ) . " was not found." ) ; } return $ paymentModule -> createInstance ( ) ; }
Get an instance of the payment module

@return \Thelia\Module\PaymentModuleInterface
@throws TheliaProcessException
Get an instance of the payment module