Eigenes Zahlungsplugin, Hilfe gesucht.

Hallo, ich versuche gerade mit Hilfe der Anleitung aus dem Wiki ein ganz simples Zahlungsplugin zu erstellen, welches nach dem Bestellabschluss auf die Seite des Zahlungsdienstleisters weiterleitet. http://wiki.shopware.de/Zahlungsplugins … l_897.html Leider scheitere ich schon an der Stelle: [code]$this->createPayment(array( ‚name‘ => ‚my_payment_cc‘, ‚description‘ => ‚Example Kreditkarte‘, ‚action‘ => ‚payment_example‘, ‚active‘ => 1, ‚position‘ => 1, ‚additionalDescription‘ => ’

’ . ’

Pay save and secured through our payment service.
’ ));[/code] Ich bekomme hier immer einen Syntaxfehler angezeigt. Schön wäre es, wenn das Beispiel aus dem Wiki als Code zum Download zur Verfügung gestanden hätte. Kann mir eventuell jemand unter die Arme greifen und mich hierbei unterstützen? Kurze Beschreibung: Es geht um den Zahlungsanbieter payever (http://www.payever.de). Dieser bietet keine Schnittstelle an, sondern lediglich ein HTML-Schnipsel, welchen man „einfach“ in die Übersichtsseite nach dem Bestellabschluss einbinden soll. Ich fände es allerdings schöner, wenn der Kunde nach dem Bestellabschluss direkt zum Zahlungsdienstleister weitergeleitet werden würde. Ich würde den Code dann hier mal allen zur Verfügung stellen. So hätte jeder etwas davon, der es auch nutzen möchte. Auch Veränderungen/Verbesserungen könnte man so leichter umsetzen. Das hier hab ich bis jetzt in die bootstrap.php geschrieben: [code]<?php /**

  • Shopware 4.0
  • Copyright © 2012 shopware AG
  • According to our dual licensing model, this program can be used either
  • under the terms of the GNU LESSER GENERAL PUBLIC LICENSE, version 3,
  • or under a proprietary license.
  • The texts of the GNU LESSER GENERAL PUBLIC LICENSE with an additional
  • permission and of our proprietary license can be found at and
  • in the LICENSE file you have received along with this program.
  • This program is distributed in the hope that it will be useful,
  • but WITHOUT ANY WARRANTY; without even the implied warranty of
  • MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  • GNU Affero General Public License for more details.
  • „Shopware“ is a registered trademark of shopware AG.
  • The licensing of the program under the AGPLv3 does not imply a
  • trademark license. Therefore any rights, title and interest in
  • our trademarks remain entirely with us.
  • @category Shopware
  • @package Shopware_Plugins
  • @subpackage Payever
  • @author
    /
    class Shopware_Plugins_Frontend_PayeverPayment_Bootstrap
    extends Shopware_Components_Plugin_Bootstrap
    {
    /
    *
    • Get Info for the Pluginmanager
    • @return array
      */
      public function getInfo()
      {
      $img = base64_encode(file_get_contents(dirname( FILE ) . ‚/img/payever_raten_50.png‘));
      return array(
      ‚version‘ => $this->getVersion(), ‚author‘ => " ", ‚source‘ => $this->getSource(), ‚description‘ => ’

!(data:image/png;base64,’ . $img . ')

Payever. Keine Grundgebühren. Keine Vertraglaufzeiten. Sie zahlen nur wenn sie verkaufen. www.payever.de

', ‚support‘ => " ", ‚link‘ => " ", ‚copyright‘ => „Copyright © 2014“, ‚label‘ => „Payever“, ); } /** * Returns the plugin version * * @return String */ public function getVersion() { return „1.0.0“; } /** * Shopware method automatically getting called for plugin Installation * * @return boolean Indicator of success */ public function install() { $this->createEvents(); $this->createPayment(); return true; } /** * Updates the plugin * * @param string $oldVersion * * @return bool */ public function update($oldVersion) { switch($oldVersion) { case ‚1.0.0‘ : // Things to do to update a version 1.0.0 to the current version // Was schreibt man hier hin? break; } } /** * Shopware method automatically getting called for plugin Uninstallation * * @return boolean Indicator of success */ public function uninstall() { return parent::uninstall(); } /** * Shopware method automatically getting called for plugin Activation * * @return boolean Indicator of success */ public function enable() { $payment = $this->Payment(); $payment->setActive(true); return true; } public function disable() { $payment = $this->Payment(); if ($payment !== null) { $payment->setActive(false); } return true; } /** * Eventhandler for checkout confirmation. * Displays any error messages stored in the session * * @param Enlight_Event_EventArgs $arguments */ public function Payment() { return $this->Payments()->findOneBy(array( ‚name‘ => ‚my_payment_rate‘ )); } // ab hier ist schon der Syntaxfehler /* muss das hier vielleicht noch davor? Dann kommt aber ein Syntaxfehler in der letzten Zeile public function Payment() { */ return $this->createPayment(array( ‚name‘ => ‚my_payment_cc‘, ‚description‘ => ‚Example Kreditkarte‘, ‚action‘ => ‚payment_example‘, ‚active‘ => 1, ‚position‘ => 1, ‚additionalDescription‘ => ’

’ . ’
Pay save and secured through our payment service.
’ )); } [/code] Ich hoffe auf Eure Unterstützung. Gruß, Tom

Hi, für was wir denn der Syntax-Fehler angezeigt, da gibt es doch sicher einen Trace oder sowas? Grundsätzlich kannst du dir das ja ganz gut bei bspw. SwagPaymentPayPal abschauen, vll. hilft dir das ja weiter? lG Daniel