# PayPal/Zettel lässt sich nicht einrichten nach Update

**URL:** <https://forum.shopware.com/t/paypal-zettel-laesst-sich-nicht-einrichten-nach-update/104974>\
**Category:** Shopware 6 (German)\
**Tags:** offizielle-shopware-\
**Created:** [26. August 2024 um 18:07 UTC](https://forum.shopware.com/t/paypal-zettel-laesst-sich-nicht-einrichten-nach-update/104974 "2024-08-26T18:07:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LenaRedmond](https://avatars.discourse-cdn.com/v4/letter/l/91b2a8/32.png) [@LenaRedmond](https://forum.shopware.com/u/LenaRedmond)\
**Post date:** [26. August 2024 um 18:07 UTC](https://forum.shopware.com/t/paypal-zettel-laesst-sich-nicht-einrichten-nach-update/104974/1 "2024-08-26T18:07:34Z")

</div>

Nach einem Update von 6.4.x auf Version 6.5.8.13 und dem PayPal Plugin auf 8.5 lässt sich Zettel Pos nicht mehr einrichten. Im Frontend erscheint ein Invalid Grant als Fehlermeldung. In den Logs (nachdem diese auf Debug umgestellt wurden) erscheint der Hinweis das es mit dem JWT Token Probleme gibt:

```auto
[2024-08-26T17:41:18.750018+00:00] php.INFO: User Deprecated: Since symfony/framework-bundle 6.4: The "annotations.cached_reader" service is deprecated without replacement. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/framework-bundle 6.4: The \"annotations.cached_reader\" service is deprecated without replacement. at /var/www/share/shopware6/var/cache/prod_hc92e7e574268fbd6c608e6bf8b53d75e/ContainerW6CXP7X/Shopware_Core_KernelProdContainer.php:38600)"} []
[2024-08-26T17:41:18.750208+00:00] php.INFO: User Deprecated: Since symfony/framework-bundle 6.4: The "annotations.reader" service is deprecated without replacement. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/framework-bundle 6.4: The \"annotations.reader\" service is deprecated without replacement. at /var/www/share/shopware6/var/cache/prod_hc92e7e574268fbd6c608e6bf8b53d75e/ContainerW6CXP7X/Shopware_Core_KernelProdContainer.php:38614)"} []
[2024-08-26T17:41:18.750580+00:00] php.INFO: User Deprecated: Since symfony/framework-bundle 6.4: The "annotations.cache_adapter" service is deprecated without replacement. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/framework-bundle 6.4: The \"annotations.cache_adapter\" service is deprecated without replacement. at /var/www/share/shopware6/var/cache/prod_hc92e7e574268fbd6c608e6bf8b53d75e/ContainerW6CXP7X/Shopware_Core_KernelProdContainer.php:38572)"} []
[2024-08-26T17:41:18.750624+00:00] php.INFO: User Deprecated: Since symfony/serializer 6.4: Passing a "Doctrine\Common\Annotations\PsrCachedReader" instance as argument 1 to "Symfony\Component\Serializer\Mapping\Loader\AttributeLoader::__construct()" is deprecated, pass null or omit the parameter instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/serializer 6.4: Passing a \"Doctrine\\Common\\Annotations\\PsrCachedReader\" instance as argument 1 to \"Symfony\\Component\\Serializer\\Mapping\\Loader\\AttributeLoader::__construct()\" is deprecated, pass null or omit the parameter instead. at /var/www/share/shopware6/vendor/symfony/serializer/Mapping/Loader/AttributeLoader.php:51)"} []
[2024-08-26T17:41:18.772678+00:00] request.INFO: Matched route "api.action.paypal.pos.validate.api.credentials". {"route":"api.action.paypal.pos.validate.api.credentials","route_parameters":{"_route":"api.action.paypal.pos.validate.api.credentials","_routeScope":["api"],"_acl":["sales_channel.editor"],"_controller":"Swag\\PayPal\\Pos\\Setting\\SettingsController::validateApiCredentials"},"request_uri":"https://shop.domain.tld/api/_action/paypal/pos/validate-api-credentials","method":"POST"} []
[2024-08-26T17:41:18.796583+00:00] php.INFO: User Deprecated: Since symfony/validator 6.4: Method "Symfony\Component\Validator\ValidatorBuilder::setDoctrineAnnotationReader()" is deprecated without replacement. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/validator 6.4: Method \"Symfony\\Component\\Validator\\ValidatorBuilder::setDoctrineAnnotationReader()\" is deprecated without replacement. at /var/www/share/shopware6/vendor/symfony/validator/ValidatorBuilder.php:252)"} []
[2024-08-26T17:41:18.946989+00:00] request.ERROR: Uncaught PHP Exception Swag\PayPal\Pos\Api\Exception\PosTokenException: "The error "invalid_grant" occurred with the following message: Invalid JWT assertion" at TokenClient.php line 61 {"exception":"[object] (Swag\\PayPal\\Pos\\Api\\Exception\\PosTokenException(code: 0): The error \"invalid_grant\" occurred with the following message: Invalid JWT assertion at /var/www/share/shopware6/custom/plugins/SwagPayPal/src/Pos/Client/TokenClient.php:61)"} []
[2024-08-26T17:41:18.957386+00:00] php.INFO: User Deprecated: Since symfony/http-kernel 6.2: Setting "terminate_on_cache_hit" to "true" is deprecated and will be changed to "false" in Symfony 7.0. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/http-kernel 6.2: Setting \"terminate_on_cache_hit\" to \"true\" is deprecated and will be changed to \"false\" in Symfony 7.0. at /var/www/share/shopware6/vendor/symfony/http-kernel/HttpCache/HttpCache.php:254)"} []

```

Das PayPal Plugin wurde einmal runter und wieder drauf gehämmert, aber ohne jegliche Änderung.  
Caches wurden geleert.

Vor dem Update wurde der Zettel Saleschannel entfernt, da sich sonst das PayPal Plugin nicht deaktivieren lies und damit der ganze Shop auf die Nase fiel.

Meine Recherche zur Behebung brachte leider keinen Erkentnis und ich frage mich, ob das wer schon sah oder weiß was wo ich anpacken kann.

---

<div class="post-metadata">

**Author:** ![LenaRedmond](https://avatars.discourse-cdn.com/v4/letter/l/91b2a8/32.png) [@LenaRedmond](https://forum.shopware.com/u/LenaRedmond)\
**Post date:** [30. August 2024 um 13:31 UTC](https://forum.shopware.com/t/paypal-zettel-laesst-sich-nicht-einrichten-nach-update/104974/2 "2024-08-30T13:31:34Z")

</div>

Ich habe ebenso via Composer einen neuen Demo-Shop installiert und auch ein Update auf 6.6 gemacht. In beiden Fällen kommt es zum selben Problem.  
Konnte das jemand rekonstruieren?

---

<div class="post-metadata">

**Author:** ![LenaRedmond](https://avatars.discourse-cdn.com/v4/letter/l/91b2a8/32.png) [@LenaRedmond](https://forum.shopware.com/u/LenaRedmond)\
**Post date:** [22. September 2024 um 06:26 UTC](https://forum.shopware.com/t/paypal-zettel-laesst-sich-nicht-einrichten-nach-update/104974/3 "2024-09-22T06:26:15Z")

</div>

Wurde durch ein Update gefixt

> <https://github.com/shopware/shopware/issues/4658>
>
> \*PHP Version:\* 8.2.X | \*Shopware Version:\* 6.6.5.1 | \*Affected area / extensi…on:\* Extension:PayPal-Integration 
> 
> \----
> 
> \*\_Expected behaviour:\_\*
> 
> I can create a new Zettle sales channel
> 
> \*\_Actual behaviour:\_\*
> 
> An error was captured in current module: SyntaxError: 10,
> An error was captured in current module: TypeError: this.salesChannel.extensions.paypalPosSalesChannel is undefined
> 
> \*\_How to reproduce:\_\*
> 
> \*\*EN\*\*   
> A customer wants to create a Zettle sales channel. He enters the API key, but after Next the message 
> Error
> The sales channel ‘Zettle POS’ could not be saved. Please check your entries. 
> 
> I get a syntax error in the browser console when trying in my environment SW 6.6.5.1 and PP 9.5.0: An error was captured in current module: SyntaxError: 10, followed by An error was captured in current module: TypeError: this.salesChannel.extensions.paypalPosSalesChannel is undefined.Am I doing something wrong with the setup or is this an error in the PP plugin? The customer also has syntax error 10 in the log.
> 
> Max was able to reproduce it.
> 
> \*\*DE\*\*   
> Ein Kunde möchte einen Zettle Verkaufskanal anlegen. Er gibt den API Key ein, aber nach Weiter kommt die Meldung 
> Fehler
> Der Verkaufskanal "Zettle POS" konnte nicht gespeichert werden. Bitte überprüfe Deine Eingaben. 
> 
> In der Browser Konsole beim Versuch in meiner Umgebung SW 6.6.5.1 und PP 9.5.0 wird mir ein Syntax Error angezeigt: An error was captured in current module: SyntaxError: 10, gefolgt von An error was captured in current module: TypeError: this.salesChannel.extensions.paypalPosSalesChannel is undefined.Mache ich jetzt bei der Einrichtung was falsch oder ist das ein Fehler im PP Plugin? Beim Kunde steht der Syntax Error 10 auch im Log.
> 
> Konnte von Max nachvollzogen werden.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/2/9/29c7587ba660f00e4995d1743162782e5d6d8653.svg) [@system](https://forum.shopware.com/u/system)\
**Post date:** [22. Oktober 2024 um 06:26 UTC](https://forum.shopware.com/t/paypal-zettel-laesst-sich-nicht-einrichten-nach-update/104974/4 "2024-10-22T06:26:50Z")

</div>

Dieses Thema wurde automatisch 30 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Antworten mehr erlaubt.
