public function render($attributes = array()) { if ($this->paypalFormData === true) { $return = '<form action="' . $this->host . '" method="post">' . parent::render($attributes = array()) . '<input name="submit" src="' . $this->button . '" type="image" style="width: auto;"/> <img src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" border="0" alt="" width="1" height="1" /> </form>'; } else { return __('Erreur, impossible de payer avec paypal'); } return $return; }