# PayPal Plugin Problem nach Update auf 4.0.2

**URL:** <https://forum.shopware.com/t/paypal-plugin-problem-nach-update-auf-4-0-2/93904>\
**Category:** Shopware 5\
**Created:** [12. April 2022 um 11:02 UTC](https://forum.shopware.com/t/paypal-plugin-problem-nach-update-auf-4-0-2/93904 "2022-04-12T11:02:19Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![webdev1](https://avatars.discourse-cdn.com/v4/letter/w/ed8c4c/32.png) [@webdev1](https://forum.shopware.com/u/webdev1)\
**Post date:** [12. April 2022 um 11:02 UTC](https://forum.shopware.com/t/paypal-plugin-problem-nach-update-auf-4-0-2/93904/1 "2022-04-12T11:02:19Z")

</div>

Hallo,

nachdem wir das PayPal Plugin auf 4.0.2 in unserem SW5.7.7 Shop geupdatet haben geht keine Paypal Zahlung mehr durch. Nach dem Absenden des Warenkorbs über den Paypal checkout button können wir uns mit den PayPal Credentials anmelden. Anschließend werden wir aus dem PayPal Popup wieder zurück inden Shop geführt mit der Fehlermeldung:

„Während der Kommunikation mit dem Zahlungsanbieter ist ein Fehler aufgetreten, bitte versuchen Sie es später erneut.“ in der PHP Error log bekommen wir folgende Rückmeldung:

```auto
2-Apr-2022 12:58:37 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to a member function getValue() on null in /var/www/www.unsershop.de/www/testshop/custom/plugins/SwagPaymentPayPalUnified/Components/Services/OrderBuilder/OrderHandler/AbstractOrderHandler.php:387
Stack trace:
#0 [internal function]: SwagPaymentPayPalUnified\Components\Services\OrderBuilder\OrderHandler\AbstractOrderHandler::SwagPaymentPayPalUnified\Components\Services\OrderBuilder\OrderHandler\{closure}(0, Object(SwagPaymentPayPalUnified\PayPalBundle\V2\Api\Order\PurchaseUnit\Item))
#1 /var/www/www.unsershop.de/www/testshop/custom/plugins/SwagPaymentPayPalUnified/Components/Services/OrderBuilder/OrderHandler/AbstractOrderHandler.php(388): array_reduce(Array, Object(Closure), 0)
#2 /var/www/www.unsershop.de/www/testshop/custom/plugins/SwagPaymentPayPalUnified/Components/Services/OrderBuilder/OrderHandler/AbstractOrderHandler.php(197): SwagPaymentPayPalUnified\Components\Services\OrderBuilder\OrderHandler\AbstractOrderHandler->addVirtualHandlingAndDiscounts(Object(SwagPaymentPayPalUnified\PayPalBundle\V2\Api\Order\PurchaseUnit))
#3 /var/www/www.unsershop.de/www/testshop/custom/plugins/SwagPaymentPayPalUnified/Components/Services/OrderBuilder/OrderHandler/ClassicOrderHandler.php(34): SwagPaymentPayPalUnified\Components\Services\OrderBuilder\OrderHandler\AbstractOrderHandler->createPurchaseUnits(Object(SwagPaymentPayPalUnified\Components\PayPalOrderParameter\PayPalOrderParameter))
#4 /var/www/www.unsershop.de/www/testshop/custom/plugins/SwagPaymentPayPalUnified/Components/Services/OrderBuilder/OrderFactory.php(38): SwagPaymentPayPalUnified\Components\Services\OrderBuilder\OrderHandler\ClassicOrderHandler->createOrder(Object(SwagPaymentPayPalUnified\Components\PayPalOrderParameter\PayPalOrderParameter))
#5 /var/www/www.unsershop.de/www/testshop/custom/plugins/SwagPaymentPayPalUnified/Controllers/Frontend/AbstractPaypalPaymentController.php(180): SwagPaymentPayPalUnified\Components\Services\OrderBuilder\OrderFactory->createOrder(Object(SwagPaymentPayPalUnified\Components\PayPalOrderParameter\PayPalOrderParameter))
#6 /var/www/www.unsershop.de/www/testshop/custom/plugins/SwagPaymentPayPalUnified/Controllers/Frontend/PaypalUnifiedV2.php(67): SwagPaymentPayPalUnified\Controllers\Frontend\AbstractPaypalPaymentController->createPayPalOrder(Object(SwagPaymentPayPalUnified\Components\PayPalOrderParameter\PayPalOrderParameter))
#7 /var/www/www.unsershop.de/www/testshop/engine/Library/Enlight/Controller/Action.php(182): Shopware_Controllers_Frontend_PaypalUnifiedV2->indexAction()
#8 /var/www/www.unsershop.de/www/testshop/engine/Library/Enlight/Controller/Dispatcher/Default.php(461): Enlight_Controller_Action->dispatch('indexAction')
#9 /var/www/www.unsershop.de/www/testshop/engine/Library/Enlight/Controller/Front.php(225): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp))
#10 /var/www/www.unsershop.de/www/testshop/engine/Shopware/Kernel.php(197): Enlight_Controller_Front->dispatch()
#11 /var/www/www.unsershop.de/www/testshop/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(85): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)

```

wir nutzen PHP 7.4.23

hat jemand eine Idee?

---

<div class="post-metadata">

**Author:** ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)\
**Post date:** [12. April 2022 um 11:08 UTC](https://forum.shopware.com/t/paypal-plugin-problem-nach-update-auf-4-0-2/93904/2 "2022-04-12T11:08:16Z")

</div>

Hallo,

schau‘ mal hier:

> [@Paypal 4.0.0 und nun?](https://forum.shopware.com/t/paypal-4-0-0-und-nun/93748/60):
>
> Dieser Fehler taucht bei mir auf, wenn „Warenkorb übertragen“ aktiviert ist. Ich „hoffe“ doch auch, dass das Plugin sehr bald wieder tadellos funktioniert. Alles andere ist doch für viele Shopbetreiber höchst problematisch! Siehe auch:

Viele Grüße

---

<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:** [12. April 2022 um 11:18 UTC](https://forum.shopware.com/t/paypal-plugin-problem-nach-update-auf-4-0-2/93904/3 "2022-04-12T11:18:43Z")

</div>

Hallo @webdev1

der Fehler sollte mit diesem Ticket gefixt werden [Shopware Issuetracker](https://issues.shopware.com/issues/PT-12700)

Viele Grüße aus Schöppingen  
Michael Telgmann

---

<div class="post-metadata">

**Author:** ![webdev1](https://avatars.discourse-cdn.com/v4/letter/w/ed8c4c/32.png) [@webdev1](https://forum.shopware.com/u/webdev1)\
**Post date:** [12. April 2022 um 11:19 UTC](https://forum.shopware.com/t/paypal-plugin-problem-nach-update-auf-4-0-2/93904/4 "2022-04-12T11:19:06Z")

</div>

Deaktivieren wir diese Funktion dann kommen wir zwar weiter müssen dann die Shop AGB erneut bestätigen und die Zahlung abschließen danach bekommen wir eine " Invalides Formular-Token" Meldung.

---

<div class="post-metadata">

**Author:** ![webdev1](https://avatars.discourse-cdn.com/v4/letter/w/ed8c4c/32.png) [@webdev1](https://forum.shopware.com/u/webdev1)\
**Post date:** [12. April 2022 um 11:23 UTC](https://forum.shopware.com/t/paypal-plugin-problem-nach-update-auf-4-0-2/93904/5 "2022-04-12T11:23:56Z")

</div>

Hallo vielen Dank für die schnelle Rückmeldung. Ist mit

Change default price to gross" and "Gross price displayed in frontend

gemeint das in der Kundengruppe „Bruttopreise im shop“ eingebe „brutto preise“ deaktiviert sein muss ?

Oder wo findet man diese Option im Deutschsprachigen Backend?

---

<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:** [12. April 2022 um 11:24 UTC](https://forum.shopware.com/t/paypal-plugin-problem-nach-update-auf-4-0-2/93904/6 "2022-04-12T11:24:49Z")

</div>

genau, das sind Einstellungen für Kundengruppen

---

<div class="post-metadata">

**Author:** ![webdev1](https://avatars.discourse-cdn.com/v4/letter/w/ed8c4c/32.png) [@webdev1](https://forum.shopware.com/u/webdev1)\
**Post date:** [12. April 2022 um 11:36 UTC](https://forum.shopware.com/t/paypal-plugin-problem-nach-update-auf-4-0-2/93904/7 "2022-04-12T11:36:35Z")

</div>

Konnten das Problem nun beheben indem wir In-Context-Modus , Warenkorb Übertragen und Bestellnummer an PayPal übertragen deaktiviert haben. Eher eine Notlösung aber besser als keine.

---

<div class="post-metadata">

**Author:** ![MBOR](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@MBOR](https://forum.shopware.com/u/MBOR)\
**Post date:** [14. April 2022 um 08:25 UTC](https://forum.shopware.com/t/paypal-plugin-problem-nach-update-auf-4-0-2/93904/8 "2022-04-14T08:25:02Z")

</div>

Problem bei uns recht ähnlich. Nach Rückführung von Paypal in den Shop (5.6.9) landet der Kunde immer im Loginscreen. Bestellung geht nicht durch.

Dabei ist es unabhängig ob in-context, warenkorb übertragen, etc. aktiviert oder deaktiviert ist.

---

<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:** [14. April 2022 um 09:43 UTC](https://forum.shopware.com/t/paypal-plugin-problem-nach-update-auf-4-0-2/93904/9 "2022-04-14T09:43:59Z")

</div>

Hallo @MBOR

hast du zufällig Telefonnummer oder ein anderes Feld als Pflichtfeld konfiguriert? Und diese Daten kommen werden nicht von PayPal mit gesendet?

Viele Grüße aus Schöppingen  
Michael Telgmann

---

<div class="post-metadata">

**Author:** ![MBOR](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@MBOR](https://forum.shopware.com/u/MBOR)\
**Post date:** [14. April 2022 um 09:55 UTC](https://forum.shopware.com/t/paypal-plugin-problem-nach-update-auf-4-0-2/93904/10 "2022-04-14T09:55:59Z")

</div>

Hallo,

nein tatsächlich nicht, das wäre für den express-checkout sicher ein Punkt gewesen. Aber das Problem tritt auch bei registrierten Kunden auf.

Vlt. noch als Ergänzung. Bei Express-Checkout wird der Kunde zwar angelegt als Schnellbesteller aber die Bestellung wird nicht erzeugt.
