# Probleme mit PayPal Plus Route (POST, PATCH)

**URL:** <https://forum.shopware.com/t/probleme-mit-paypal-plus-route-post-patch/86063>\
**Category:** Shopware 6 (German)\
**Created:** [15. März 2021 um 13:57 UTC](https://forum.shopware.com/t/probleme-mit-paypal-plus-route-post-patch/86063 "2021-03-15T13:57:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shopwareZ14](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@shopwareZ14](https://forum.shopware.com/u/shopwareZ14)\
**Post date:** [15. März 2021 um 13:57 UTC](https://forum.shopware.com/t/probleme-mit-paypal-plus-route-post-patch/86063/1 "2021-03-15T13:57:26Z")

</div>

Hallo @Michael_Telgmann @Moritz_Naczenski

sobald ich PayPal Plus aktiviere bekomme ich eine endlose Ladeanimation und folgende Fehler in der Storefront

 ![sw6-paypal-error](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/f/f2849dd3ed9534d34872b374faec76a7e7957ddd.png)

Im Log finde ich folgendes:  
`request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "PATCH /checkout/undefined" (from "https://staging.../checkout/confirm")" at /var/www/.../staging.../shopware/vendor/symfony/http-kernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"PATCH /checkout/undefined\" (from \"https://staging.../checkout/confirm\") at /var/www/.../staging.../shopware/vendor/symfony/http-kernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): No routes found for \"/checkout/undefined\". at /var/www/.../staging.../shopware/vendor/symfony/routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:70)"} [] [2021-03-15 13:13:16] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "POST /checkout/undefined" (from "https://staging.../checkout/confirm")" at /var/www/.../staging.../shopware/vendor/symfony/http-kernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"POST /checkout/undefined\" (from \"https://staging.../checkout/confirm\") at /var/www/.../staging.../shopware/vendor/symfony/http-kernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): No routes found for \"/checkout/undefined\". at /var/www/.../staging.../shopware/vendor/symfony/routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:70)"} []`

Ich hoffe sehr, dass Ihr mir weiterhelfen könnt.

Viele Grüße  
Dominik

---

<div class="post-metadata">

**Author:** ![shopwareZ14](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@shopwareZ14](https://forum.shopware.com/u/shopwareZ14)\
**Post date:** [30. März 2021 um 13:18 UTC](https://forum.shopware.com/t/probleme-mit-paypal-plus-route-post-patch/86063/2 "2021-03-30T13:18:41Z")

</div>

@Michael_Telgmann kann mir hier bitte jemand helfen?  
Habe einen Shop den ich gerne für einen Kunden online stellen wollen würde, aber ohne funktionierendes Bezahlsystem (Paypal) wird das schwierig… ☹

---

<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:** [16. April 2021 um 12:28 UTC](https://forum.shopware.com/t/probleme-mit-paypal-plus-route-post-patch/86063/3 "2021-04-16T12:28:55Z")

</div>

Hallo Dominik,

der Fehler ist mir so erstmal nicht bekannt. Funktioniert denn eine PayPal Zahlung ohne das Plus aktiviert ist? Sind die Credentials korrekt?

Viele Grüße aus Schöppingen

Michael Telgmann

---

<div class="post-metadata">

**Author:** ![felix.niedballa](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@felix.niedballa](https://forum.shopware.com/u/felix.niedballa)\
**Post date:** [18. Mai 2021 um 04:58 UTC](https://forum.shopware.com/t/probleme-mit-paypal-plus-route-post-patch/86063/4 "2021-05-18T04:58:12Z")

</div>

Hallo zusammen,

ich habe den gleichen Fehler (Shopware v6.3.2.1 mit PayPalPlugin 2.2.5. Mit PayPal Plus kommt es zu dem oben gezeigten Fehler. Ist dies deaktiviert, funktioniert alles.

VG  
Felix Niedballa

---

<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:** [18. Mai 2021 um 06:22 UTC](https://forum.shopware.com/t/probleme-mit-paypal-plus-route-post-patch/86063/5 "2021-05-18T06:22:38Z")

</div>

Hallo Dominik und Felix,

könnt ihr mal bitte prüfen, ob in eurem Template folgende Elemente vorhanden sind: [SwagPayPal/payment-method.html.twig at master · shopwareLabs/SwagPayPal · GitHub](https://github.com/shopwareLabs/SwagPayPal/blob/master/src/Resources/views/storefront/component/payment/payment-method.html.twig#L23-L27)  
Überprüft insbesondere mal das Data Attribute „data-swag-pay-pal-plus-payment-wall-options“ Dort scheint der JSON-Key „contextSwitchUrl“ zu fehlen oder fehlerhaft zu sein. Dieser wird an dieser Stelle genutzt: [SwagPayPal/payment-wall.js at master · shopwareLabs/SwagPayPal · GitHub](https://github.com/shopwareLabs/SwagPayPal/blob/master/src/Resources/app/storefront/src/plus/payment-wall.js#L216)  
Dort passiert der PATCH call, der bei euch nicht funktioniert.  
Ggf. schaut mal hier rein: [SwagPayPal/PlusDataService.php at master · shopwareLabs/SwagPayPal · GitHub](https://github.com/shopwareLabs/SwagPayPal/blob/master/src/Checkout/Plus/Service/PlusDataService.php#L169)  
Hier werden die Daten zusammengebaut.

Viele Grüße aus Schöppingen  
Michael Telgmann

---

<div class="post-metadata">

**Author:** ![felix.niedballa](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@felix.niedballa](https://forum.shopware.com/u/felix.niedballa)\
**Post date:** [20. Mai 2021 um 17:45 UTC](https://forum.shopware.com/t/probleme-mit-paypal-plus-route-post-patch/86063/6 "2021-05-20T17:45:15Z")

</div>

Hallo Michael,

vielen Dank für die Rückmeldung. Die besagten Parts sind nicht vorhanden, dürften laut GitHub ja auch in Tag 2.2.5 gar nicht existieren, oder sehe ich was falsch?

VG

---

<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:** [21. Mai 2021 um 06:22 UTC](https://forum.shopware.com/t/probleme-mit-paypal-plus-route-post-patch/86063/7 "2021-05-21T06:22:41Z")

</div>

Hallo Felix,

sorry du hast recht. Ich hab die Version für Shopware 6.4 erwischt. Hier die Links für die 6.3er Version:

> <https://github.com/shopwareLabs/SwagPayPal/blob/2.2.5/src/Resources/views/storefront/page/checkout/confirm/confirm-payment.html.twig#L9-L12>

> <https://github.com/shopwareLabs/SwagPayPal/blob/2.2.5/src/Resources/app/storefront/src/plus/payment-wall.js#L216>

> <https://github.com/shopwareLabs/SwagPayPal/blob/2.2.5/src/Checkout/Plus/Service/PlusDataService.php#L170>

Viele Grüße aus Schöppingen  
Michael Telgmann
