PayPal Fehler -> Leider ist etwas schief gelaufen

Guten Abend,
ich habe aktuell das Problem, das Kunden keine Zahlungen mit PayPal ausführen können, da nach dem Button bestellen die Meldung kommt: Leider ist etwas schief gelaufen

PayPal Log:

[2021-11-22T18:02:52.442523+00:00] swag_paypal.DEBUG: Swag\PayPal\Installment\Banner\InstallmentBannerSubscriber::addInstallmentBanner (119): Added data to Shopware\Storefront\Page\Checkout\Offcanvas\OffcanvasCartPageLoadedEvent [] {"url":"/widgets/checkout/info","http_method":"GET","server":"meyle-pflegediscounter.de","file":"/var/www/vhosts/meyle-pflegediscounter.de/httpdocs/custom/plugins/SwagPayPal/src/Installment/Banner/InstallmentBannerSubscriber.php"}
[2021-11-22T18:04:48.906289+00:00] swag_paypal.DEBUG: Swag\PayPal\RestApi\Client\AbstractClient::request (55): Sending POST request to v1/oauth2/token with the following content: array{"form_params":{"grant_type":"client_credentials"}} [] {"url":"/api/_action/system-config/batch","http_method":"POST","server":"meyle-pflegediscounter.de","file":"/var/www/vhosts/meyle-pflegediscounter.de/httpdocs/custom/plugins/SwagPayPal/src/RestApi/Client/AbstractClient.php"}
[2021-11-22T18:04:49.213059+00:00] swag_paypal.DEBUG: Swag\PayPal\RestApi\Client\AbstractClient::request (72): Received 200 OK from POST v1/oauth2/token with following response: {"scope":"https://uri.paypal.com/services/invoicing https://uri.paypal.com/services/disputes/read-buyer https://uri.paypal.com/services/payments/realtimepayment https://uri.paypal.com/services/disputes/update-seller https://uri.paypal.com/services/payments/payment/authcapture openid https://uri.paypal.com/services/disputes/read-seller https://uri.paypal.com/services/payments/refund https://api.paypal.com/v1/vault/credit-card https://api.paypal.com/v1/payments/.* https://uri.paypal.com/services/reporting/search/read https://uri.paypal.com/services/payments/initiatepayment https://uri.paypal.com/payments/payouts https://api.paypal.com/v1/vault/credit-card/.* https://uri.paypal.com/services/subscriptions https://uri.paypal.com/services/applications/webhooks","access_token":"A21AANe98M9hXRaCWnEfMgsDxgju2iNR4_-jGHXddrwMO-aMz5rbu3XLRPrFVD0X_euIMraXuKZq52tQZ9WyQaQPrSxFbg-lQ","token_type":"Bearer","app_id":"APP-0MV58385BG922145N","expires_in":32400,"nonce":"2021-11-22T18:04:49ZDD_7-mHR7VZYhjJjpq7r3fk07EmHKO9NyQDa6lo8zG8"} [] {"url":"/api/_action/system-config/batch","http_method":"POST","server":"meyle-pflegediscounter.de","file":"/var/www/vhosts/meyle-pflegediscounter.de/httpdocs/custom/plugins/SwagPayPal/src/RestApi/Client/AbstractClient.php"}
[2021-11-22T18:04:49.216519+00:00] swag_paypal.DEBUG: Swag\PayPal\RestApi\Client\AbstractClient::request (55): Sending GET request to v1/notifications/webhooks/4GY232232E4786918 with the following content: array{"headers":[]} [] {"url":"/api/_action/system-config/batch","http_method":"POST","server":"meyle-pflegediscounter.de","file":"/var/www/vhosts/meyle-pflegediscounter.de/httpdocs/custom/plugins/SwagPayPal/src/RestApi/Client/AbstractClient.php"}
[2021-11-22T18:04:49.456621+00:00] swag_paypal.ERROR: Swag\PayPal\RestApi\Client\AbstractClient::handleRequestException (114): Client error: `GET https://api.paypal.com/v1/notifications/webhooks/4GY232232E4786918` resulted in a `404 Not Found` response: {"name":"INVALID_RESOURCE_ID","message":"Resource id is invalid","debug_id":"7997c2f6f81f2","information_link":"https:// (truncated...)  Resource id is invalid  [{"name":"INVALID_RESOURCE_ID","message":"Resource id is invalid","debug_id":"7997c2f6f81f2","information_link":"https://developer.paypal.com/docs/api/webhooks/#errors","details":[],"links":[]},{"headers":[]}] {"url":"/api/_action/system-config/batch","http_method":"POST","server":"meyle-pflegediscounter.de","file":"/var/www/vhosts/meyle-pflegediscounter.de/httpdocs/custom/plugins/SwagPayPal/src/RestApi/Client/AbstractClient.php"}
[2021-11-22T18:04:49.458211+00:00] swag_paypal.DEBUG: Swag\PayPal\RestApi\Client\AbstractClient::request (55): Sending PATCH request to v1/notifications/webhooks/4GY232232E4786918 with the following content: array{"headers":{"content-type":"application/json"},"json":[{"op":"replace","path":"/url","value":"https://meyle-pflegediscounter.de/api/_action/paypal/webhook/execute?sw-token=VUV0z5HqFCl0je7njh72VlOepjUfTBj5"}]} [] {"url":"/api/_action/system-config/batch","http_method":"POST","server":"meyle-pflegediscounter.de","file":"/var/www/vhosts/meyle-pflegediscounter.de/httpdocs/custom/plugins/SwagPayPal/src/RestApi/Client/AbstractClient.php"}
[2021-11-22T18:04:49.643768+00:00] swag_paypal.ERROR: Swag\PayPal\RestApi\Client\AbstractClient::handleRequestException (114): Client error: `PATCH https://api.paypal.com/v1/notifications/webhooks/4GY232232E4786918` resulted in a `404 Not Found` response: {"name":"INVALID_RESOURCE_ID","message":"Resource id is invalid","debug_id":"c35a11f0b68d1","information_link":"https:// (truncated...)  Resource id is invalid  [{"name":"INVALID_RESOURCE_ID","message":"Resource id is invalid","debug_id":"c35a11f0b68d1","information_link":"https://developer.paypal.com/docs/api/webhooks/#errors","details":[],"links":[]},{"headers":{"content-type":"application/json"},"json":[{"Swag\\PayPal\\RestApi\\V1\\Api\\Patch":{"op":"replace","path":"/url","value":"https://meyle-pflegediscounter.de/api/_action/paypal/webhook/execute?sw-token=VUV0z5HqFCl0je7njh72VlOepjUfTBj5"}}]}] {"url":"/api/_action/system-config/batch","http_method":"POST","server":"meyle-pflegediscounter.de","file":"/var/www/vhosts/meyle-pflegediscounter.de/httpdocs/custom/plugins/SwagPayPal/src/RestApi/Client/AbstractClient.php"}
[2021-11-22T18:04:49.644903+00:00] swag_paypal.DEBUG: Swag\PayPal\RestApi\Client\AbstractClient::request (55): Sending POST request to v1/notifications/webhooks with the following content: array{"headers":{"content-type":"application/json"},"json":{"url":"https://meyle-pflegediscounter.de/api/_action/paypal/webhook/execute?sw-token=VUV0z5HqFCl0je7njh72VlOepjUfTBj5","event_types":[{"name":"*"}]}} [] {"url":"/api/_action/system-config/batch","http_method":"POST","server":"meyle-pflegediscounter.de","file":"/var/www/vhosts/meyle-pflegediscounter.de/httpdocs/custom/plugins/SwagPayPal/src/RestApi/Client/AbstractClient.php"}
[2021-11-22T18:04:49.913614+00:00] swag_paypal.DEBUG: Swag\PayPal\RestApi\Client\AbstractClient::request (72): Received 201 Created from POST v1/notifications/webhooks with following response: {"id":"7XB45829U3343605G","url":"https://meyle-pflegediscounter.de/api/_action/paypal/webhook/execute?sw-token=VUV0z5HqFCl0je7njh72VlOepjUfTBj5","event_types":[{"name":"*","description":"ALL"}],"links":[{"href":"https://api.paypal.com/v1/notifications/webhooks/7XB45829U3343605G","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/notifications/webhooks/7XB45829U3343605G","rel":"update","method":"PATCH"},{"href":"https://api.paypal.com/v1/notifications/webhooks/7XB45829U3343605G","rel":"delete","method":"DELETE"}]} [] {"url":"/api/_action/system-config/batch","http_method":"POST","server":"meyle-pflegediscounter.de","file":"/var/www/vhosts/meyle-pflegediscounter.de/httpdocs/custom/plugins/SwagPayPal/src/RestApi/Client/AbstractClient.php"}
[2021-11-22T18:12:41.614170+00:00] swag_paypal.DEBUG: Swag\PayPal\RestApi\Client\AbstractClient::request (55): Sending GET request to v1/notifications/webhooks/7XB45829U3343605G with the following content: array{"headers":[]} [] {"url":"/api/_action/system-config/batch","http_method":"POST","server":"meyle-pflegediscounter.de","file":"/var/www/vhosts/meyle-pflegediscounter.de/httpdocs/custom/plugins/SwagPayPal/src/RestApi/Client/AbstractClient.php"}
[2021-11-22T18:12:41.928765+00:00] swag_paypal.DEBUG: Swag\PayPal\RestApi\Client\AbstractClient::request (72): Received 200 OK from GET v1/notifications/webhooks/7XB45829U3343605G with following response: {"id":"7XB45829U3343605G","url":"https://meyle-pflegediscounter.de/api/_action/paypal/webhook/execute?sw-token=VUV0z5HqFCl0je7njh72VlOepjUfTBj5","event_types":[{"name":"*","description":"ALL","status":"ENABLED"}],"links":[{"href":"https://api.paypal.com/v1/notifications/webhooks/7XB45829U3343605G","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/notifications/webhooks/7XB45829U3343605G","rel":"update","method":"PATCH"},{"href":"https://api.paypal.com/v1/notifications/webhooks/7XB45829U3343605G","rel":"delete","method":"DELETE"}]} [] {"url":"/api/_action/system-config/batch","http_method":"POST","server":"meyle-pflegediscounter.de","file":"/var/www/vhosts/meyle-pflegediscounter.de/httpdocs/custom/plugins/SwagPayPal/src/RestApi/Client/AbstractClient.php"}

Hat jemand eine Idee woran das liegen kann?

@anon82705583 Ich würde dein PayPal-Secret zurücksetzen, sonst hast du bald fremde Buchungen auf deinem Konto.

Die aufgerufene URL gibt es nicht mehr. Wann wurde das PayPal-Plugin denn zuletzt aktualisiert?

ID und Secret wurden bereits gelöscht, aber danke für den Hinweis.

PayPal ist auf der neusten Version (4.0.0). Habe bereits eine Neuinstallation des Plugins versucht.
Shopware befindet sich ebenfalls auf der neusten Version (6.4.6.0)

Sorry, schon etwas spät. Der 404 Fehler kommt natürlich nicht von einer veralteten URL, sondern weil PayPal mit der INVALID_RESOURCE_ID nichts anfangen kann. Hier im Forum gibt es einige Einträge dazu. Fast jedesmal ohne Lösung, das Problem scheint ziemlich individuell zu sein.

Gibt es denn bei PayPal einen Log?

In PayPal gab es nur folgende Einträge unter dem API Calls:
/v1/notifications/webhooks/7XB45829U3343605G xxxxxx 22 Nov 2021 10:12:41
/v1/notifications/webhooks/4GY232232E4786918 xxxxxx 22 Nov 2021 10:04:49

Die Webhook Events sind leer.

Bezüglich der Probleme mit PayPal und der INVALID_RESOURCE_ID habe ich ein paar Sachen gesehen, aber nichts, was in meinem Fall zu einer Lösung geholfen hat.

Hallo @anon82705583,

konntest du das Problem mittlerweile lösen?

Nein nicht wirklich.
Ich habe inzwischen PayPal deaktiviert und biete nun Klarna als Zahlungsmöglichkeit an (wird auch besser angenommen, als PayPal).