. */ /* */ /*************************************************************************************/ namespace Thelia\Module; use Thelia\Model\Order; interface PaymentModuleInterface extends BaseModuleInterface { const NOT_PAID = 1; const PAID = 2; const PROCESSING = 3; const SENT = 4; const CANCELED = 5; /** * @return mixed */ public function pay(Order $order); /** * * This method is call on Payment loop. * * If you return true, the payment method will de display * If you return false, the payment method will not be display * * @return boolean */ public function isValidPayment(); }