Fehler bei PayPal Express: VALIDATION_ERROR: no such path in target JSON document (patch[2].path)

Hallo,

wir haben ein Problem mit unserem Shopware 6 Webshop. Bei Nutzung der PayPal-Express Zahlung erscheint nach dem finalen Abschicken der Bestellung (umleitung auf Paypal und die weiterleitung zurück zum Shop klappen) dieser Fehler:

Shopware\Core\Checkout\Payment\Exception\AsyncPaymentProcessException: The asynchronous payment process was interrupted due to the following error: The asynchronous payment process was interrupted due to the following error: An error occurred during the communication with PayPal The error „VALIDATION_ERROR“ occurred with the following message: Invalid request - see details: no such path in target JSON document (patch[2].path) at custom/plugins/SwagPayPal/src/Payment/PayPalPaymentHandler.php:109 at Swag\PayPal\Payment\PayPalPaymentHandler->pay(object(AsyncPaymentTransactionStruct), object(RequestDataBag), object(SalesChannelContext)) (vendor/shopware/core/Checkout/Payment/Cart/PaymentTransactionChainProcessor.php:124) at Shopware\Core\Checkout\Payment\Cart\PaymentTransactionChainProcessor->process(‚01fd8c9bd73a4e53bf9000d2ddd23e36‘, object(RequestDataBag), object(SalesChannelContext), ‚/checkout/finish?orderId=01fd8c9bd73a4e53bf9000d2ddd23e36‘) (vendor/shopware/core/Checkout/Payment/PaymentService.php:95) at Shopware\Core\Checkout\Payment\PaymentService->handlePaymentByOrder(‚01fd8c9bd73a4e53bf9000d2ddd23e36‘, object(RequestDataBag), object(SalesChannelContext), ‚/checkout/finish?orderId=01fd8c9bd73a4e53bf9000d2ddd23e36‘) (vendor/shopware/storefront/Controller/CheckoutController.php:160) at Shopware\Storefront\Controller\CheckoutController->order(object(RequestDataBag), object(SalesChannelContext), object(Request)) (vendor/symfony/http-kernel/HttpKernel.php:146) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:68) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:85) at Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(object(Kernel), object(Request), 1, true) (vendor/symfony/http-kernel/HttpCache/HttpCache.php:473) at Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(object(Request), true) (vendor/symfony/http-kernel/HttpCache/HttpCache.php:267) at Symfony\Component\HttpKernel\HttpCache\HttpCache->pass(object(Request), true) (vendor/symfony/http-kernel/HttpCache/HttpCache.php:283) at Symfony\Component\HttpKernel\HttpCache\HttpCache->invalidate(object(Request), true) (vendor/symfony/http-kernel/HttpCache/HttpCache.php:211) at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(object(Request), 1, true) (vendor/shopware/core/HttpKernel.php:148) at Shopware\Core\HttpKernel->doHandle(object(Request), 1, true) (vendor/shopware/core/HttpKernel.php:77) at Shopware\Core\HttpKernel->handle(object(Request)) (public/index.php:83)

Bei Bedarf kann ich die drei Symfony-Fehler-Tabs als html hochladen.

Kann mir da jemand weiterhelfen? Ich finde nix zu dem Thema im Netz…

Liebe Grüße:
Alwin von WebMan Webdesign

Hallo!

Ich klinke mich ein, weil wir diesen Fehler heute auch prod. erlebt haben.
Quasi identisch, 6.2.0 und aktuelle PayPal Version

{"name":"VALIDATION_ERROR","details":[{"field":"patch[2].path","issue":"no such path in target JSON document"}],"message (truncated...) Invalid request - see details: no such path in target JSON document (patch[2].path) [{"name":"VALIDATION_ERROR","details":[{"field":"patch[2].path","issue":"no such path in target JSON document"}],"message":"Invalid request - see details","information_link":"https://developer.paypal.com/docs/api/payments/#errors","debug_id":"xxx"},{"headers":{"content-type":"application/json"},"json":["[object] (Swag\\PayPal\\PayPal\\Api\\Patch: {\"op\":\"add\",\"path\":\"/transactions/0/item_list/shipping_address\",\"value\":{\"line1\":\"xxx\",\"line2\":\"xxx\",\"city\":\"xxx\",\"country_code\":\"DE\",\"postal_code\":\"xxxxx\",\"state\":null,\"phone\":null}})","[object] (Swag\\PayPal\\PayPal\\Api\\Patch: {\"op\":\"replace\",\"path\":\"/transactions/0/amount\",\"value\":{\"total\":\"12.34\",\"currency\":\"EUR\",\"details\":{\"subtotal\":\"12.34\",\"shipping\":\"0.00\",\"tax\":\"0.00\",\"handling_fee\":null,\"shipping_discount\":null,\"insurance\":null}}})","[object] (Swag\\PayPal\\PayPal\\Api\\Patch: {\"op\":\"replace\",\"path\":\"/transactions/0/item_list/items\",\"value\":[{\"name\":\"xxx\",\"currency\":\"EUR\",\"price\":\"12.34\",\"quantity\":1,\"sku\":\"xxx\",\"tax\":\"0.00\"},{\"name\":\"xxx\",\"currency\":\"EUR\",\"price\":\"12.34\",\"quantity\":1,\"sku\":\"xxx\",\"tax\":\"0.00\"}]})"]}]

Ich kann das Problem mit Test-Bestellungen nur nicht nachstellen, auch nicht per Express.

Edit : Habe jetzt die “Warenkorb Übertragung” bei Express Bestellungen deaktiviert, scheint etwas damit zu tun zu haben.