# PayPal Plugin 1.0.7 - kein Express Checkout

**URL:** <https://forum.shopware.com/t/paypal-plugin-1-0-7-kein-express-checkout/55687>\
**Category:** Plugins\
**Tags:** offizielle-shopware-\
**Created:** [11. Oktober 2018 um 08:05 UTC](https://forum.shopware.com/t/paypal-plugin-1-0-7-kein-express-checkout/55687 "2018-10-11T08:05:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![m23](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/m23/32/13275_2.png) [@m23](https://forum.shopware.com/u/m23)\
**Post date:** [11. Oktober 2018 um 08:05 UTC](https://forum.shopware.com/t/paypal-plugin-1-0-7-kein-express-checkout/55687/1 "2018-10-11T08:05:38Z")

</div>

Hallo,

wir haben gerade das neue PayPal Plugin installiert. Nun ist der Express Checkout im OffCanvas-Warenkorb sowie auf den Login-Seiten verschwunden. In der Paypal-Konfiguration sind die Häkchen aktiv, Paypal ist der Versandart zugeordnet, Cache geleert, Theme neu kompiliert. Hat jemand eine Idee, wieso der Button nicht mehr da ist?

Im Quelltext wird auch etwas ausgegeben, aber nichts angezeigt:

&nbsp;

---

<div class="post-metadata">

**Author:** ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)\
**Post date:** [11. Oktober 2018 um 12:30 UTC](https://forum.shopware.com/t/paypal-plugin-1-0-7-kein-express-checkout/55687/2 "2018-10-11T12:30:48Z")

</div>

Hallo,

bist du evtl. noch als Kunde eingeloggt? Der Button erscheint nur, wenn man keine aktive Kunden Session hat.

Viele Grüße aus Schöppingen

![cool](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/86c57fbace799dd4eb1f1b8a2d3bdc1733f0aea1.png "cool")&nbsp;Michael Telgmann

---

<div class="post-metadata">

**Author:** ![m23](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/m23/32/13275_2.png) [@m23](https://forum.shopware.com/u/m23)\
**Post date:** [11. Oktober 2018 um 12:47 UTC](https://forum.shopware.com/t/paypal-plugin-1-0-7-kein-express-checkout/55687/3 "2018-10-11T12:47:12Z")

</div>

Hi Michael,

leider nein, wir haben es auch schon in anderen Browsern getestet.

---

<div class="post-metadata">

**Author:** ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)\
**Post date:** [11. Oktober 2018 um 13:25 UTC](https://forum.shopware.com/t/paypal-plugin-1-0-7-kein-express-checkout/55687/4 "2018-10-11T13:25:32Z")

</div>

Taucht denn ein Javascript Fehler in der Konsole auf? Funktioniert ein normaler Checkout mit PayPal? Also sind die PayPal Credentials korrekt?

Viele Grüße aus Schöppingen

![cool](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/86c57fbace799dd4eb1f1b8a2d3bdc1733f0aea1.png "cool")&nbsp;Michael Telgmann

---

<div class="post-metadata">

**Author:** ![m23](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/m23/32/13275_2.png) [@m23](https://forum.shopware.com/u/m23)\
**Post date:** [11. Oktober 2018 um 13:42 UTC](https://forum.shopware.com/t/paypal-plugin-1-0-7-kein-express-checkout/55687/5 "2018-10-11T13:42:37Z")

</div>

Hi Michael,

ein normaler Checkout funktioniert. Folgendes habe ich gerade entdeckt:

```
ReferenceError: paypal is not defined[Weitere Informationen]
1539244393_0c0dbaa4858307fa641b7962c6881157.js:768:1831
createButton/<
https://www.domain.de/web/cache/1539244393_0c0dbaa4858307fa241b7962c6881157.js:768:1831
 self-hosted:989:17

```

in 768 steht:

```
me._destroy();}});$.subscribe('plugin/swAjaxVariant/onRequestData',function(){window.StateManager.addPlugin('.paypal-unified-installments--modal-link','swagPayPalUnifiedInstallmentsModal',{mode:'modal'},['xl','l','m']);window.StateManager.addPlugin('.paypal-unified-installments--modal-link','swagPayPalUnifiedInstallmentsModal',{mode:'offcanvas'},['s','xs']);});$.subscribe('plugin/swagPayPalUnifiedAjaxInstallments/ajaxSuccess',function(){window.StateManager.addPlugin('.paypal-unified-installments--modal-link','swagPayPalUnifiedInstallmentsModal',{mode:'modal'},['xl','l','m']);window.StateManager.addPlugin('.paypal-unified-installments--modal-link','swagPayPalUnifiedInstallmentsModal',{mode:'offcanvas'},['s','xs']);});window.StateManager.addPlugin('.paypal-unified-installments--modal-link','swagPayPalUnifiedInstallmentsModal',{mode:'modal'},['xl','l','m']);window.StateManager.addPlugin('.paypal-unified-installments--modal-link','swagPayPalUnifiedInstallmentsModal',{mode:'offcanvas'},['s','xs']);})(jQuery,window);;(function($,window){'use strict';$.plugin('swagPayPalUnifiedExpressCheckoutButton',{defaults:{paypalMode:'production',createPaymentUrl:'',size:'medium',shape:'rect',color:'gold',tagline:false,paypalLanguage:'en_US',detailPage:false,productQuantitySelector:'#sQuantity',productNumberSelector:'input[name="sAdd"]'},expressCheckoutButton:null,init:function(){var me=this;me.applyDataAttributes();me.createButton();$.publish('plugin/swagPayPalUnifiedExpressCheckoutButtonCart/init',me);if(me.opts.detailPage){$.subscribe(me.getEventName('plugin/swAjaxVariant/onRequestData'),$.proxy(me.onChangeVariant,me));}},onChangeVariant:function(){window.StateManager.addPlugin('*[data-paypalUnifiedEcButton="true"]','swagPayPalUnifiedExpressCheckoutButton');},createButton:function(){var me=this;me.buffer(function(){me.expressCheckoutButton=paypal.Button.render(me.createPayPalButtonConfiguration(),me.$el.get(0));$.publish('plugin/swagPayPalUnifiedExpressCheckoutButtonCart/createButton',[me,me.expressCheckoutButton]);});},createPayPalButtonConfiguration:function(){var me=this,config;config={env:me.opts.paypalMode,style:{size:me.opts.size,shape:me.opts.shape,color:me.opts.color,tagline:me.opts.tagline},locale:me.opts.paypalLanguage,payment:$.proxy(me.onPayPalPayment,me),onAuthorize:$.noop};$.publish('plugin/swagPayPalUnifiedExpressCheckoutButtonCart/createConfig',[me,config]);return config;},onPayPalPayment:function(){var me=this,token,form;$.publish('plugin/swagPayPalUnifiedExpressCheckoutButtonCart/beforeCreatePayment',me);if(CSRF.checkToken()){token=CSRF.getToken();}

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)\
**Post date:** [11. Oktober 2018 um 13:59 UTC](https://forum.shopware.com/t/paypal-plugin-1-0-7-kein-express-checkout/55687/6 "2018-10-11T13:59:17Z")

</div>

Das Javascript von PayPal scheint zu fehlen. Schau mal bitte ob folgende Datei&nbsp;[https://github.com/shopwareLabs/SwagPaymentPayPalUnified/blob/master/Resources/views/frontend/index/header.tpl](https://github.com/shopwareLabs/SwagPaymentPayPalUnified/blob/master/Resources/views/frontend/index/header.tpl) bei dir korrekt eingebunden wird.

Viele Grüße aus Schöppingen

![cool](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/86c57fbace799dd4eb1f1b8a2d3bdc1733f0aea1.png "cool")&nbsp;Michael Telgmann

---

<div class="post-metadata">

**Author:** ![m23](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/m23/32/13275_2.png) [@m23](https://forum.shopware.com/u/m23)\
**Post date:** [11. Oktober 2018 um 14:15 UTC](https://forum.shopware.com/t/paypal-plugin-1-0-7-kein-express-checkout/55687/7 "2018-10-11T14:15:29Z")

</div>

Hi Michael,

vielen Dank für Deine bisherigen Bemühungen. Die Datei ist auf dem Server im besagten Verzeichnis vorhanden. Im Quelltext finde ich das JavaScript allerdings nicht. Wie kann ich prüfen, ob er die header.tpl korrekt einbindet?

---

<div class="post-metadata">

**Author:** ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)\
**Post date:** [11. Oktober 2018 um 14:46 UTC](https://forum.shopware.com/t/paypal-plugin-1-0-7-kein-express-checkout/55687/8 "2018-10-11T14:46:00Z")

</div>

Vermutlich funkt da ein Plugin oder ein Custom Theme zwischen, dass sich nicht an die Konventionen hält, sodass der Block, den das PayPal Plugin erweitert, komplett von dem Theme/Plugin überschrieben wird.&nbsp;  
Du könntest mal auf das Default Theme umstellen und nach und nach alle Plugins deaktivieren und schauen, ob dann irgendwann im DOM das PayPal Javascript auftaucht. Zwischendurch jedes Mal den Cache leeren nicht vergessen.

Viele Grüße aus Schöppingen

![cool](http://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/shopware.png "cool")&nbsp;Michael Telgmann

---

<div class="post-metadata">

**Author:** ![m23](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/m23/32/13275_2.png) [@m23](https://forum.shopware.com/u/m23)\
**Post date:** [11. Oktober 2018 um 20:08 UTC](https://forum.shopware.com/t/paypal-plugin-1-0-7-kein-express-checkout/55687/9 "2018-10-11T20:08:08Z")

</div>

Vielen Dank für den Tipp - es war ein „Fehler“ im Custom Theme, der bisher nicht aufgefallen ist. Komisch nur, dass vorher alles funktionierte.
