public function addFreePaymentPaymentMethod(PaymentCollectionEvent $event) { if ($this->plugin->isUsable()) { $bankwire = new PaymentMethod($this->plugin->getHash(), 'elcodi_plugin.bankwire.name', 'elcodi_plugin.bankwire.description', $this->router->generate('paymentsuite_bankwire_execute')); $event->addPaymentMethod($bankwire); } }