Ich habe folgendes Problem - jedes mal, wenn man mit Paypal zahlen möchte, gelangt man problemlos richtung Paypal. Klickt man dort dann jedoch auf Zahlung abschließen, wird man zu folgender URL zurückgeleitet: (ich habe die sensiblen daten mal durch xxx bereinigt)
xxxxx.de/payment/finalize-transaction?_sw_payment_token=xxxxxxxx.xxxxxxxx
Unter dieser URL erhält man dann eine White-Page mit folgender Fehlermeldung:
{
"errors":
[
{
"status":
"410",
"code":
"CHECKOUT__PAYMENT_TOKEN_EXPIRED",
"title":
"Gone",
"detail":
"The provided token xxxxxxxxxxxxxxxxxxxx
is expired and the payment could not be processed.
",
"meta":
{
"parameters":
{
"token":
"xxxxxxxxxxxxxxxxxxxx"
}
}
}
]
}
swag_paypal_prod.log sagt folgendes
swag_paypal.ERROR:
Swag\PayPal\RestApi\Client\AbstractClient:
:handleRequestException (114): Client error: `PATCH https: //api.paypal.com/v1/notifications/webhooks/xxxxxxxxxxxxx` resulted in a `400 Bad Request` response:
{"name": "WEBHOOK_PATCH_REQUEST_NO_CHANGE",
"message":"No change in webhook",
"debug_id":"ea5f1fbb2ea43",
"information_link" (truncated...) No change in webhook [{"name":"WEBHOOK_PATCH_REQUEST_NO_CHANGE",
"message":"No change in webhook",
"debug_id":"ea5f1fbb2ea43",
"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://xxxx/api/_action/paypal/webhook/execute?sw-token=xxxxxxxxxxxxxxxxxxx"}
}
]
}
]
{"file":"/var/www/share/xxxxxxxxx-shop/htdocs/custom/plugins/SwagPayPal/src/RestApi/Client/AbstractClient.php"}
swag_paypal.ERROR:
Swag\PayPal\Webhook\Registration\WebhookSystemConfigHelper:
checkWebhookAfter (115):
The error "WEBHOOK_PATCH_REQUEST_NO_CHANGE" occurred with the following message:
No change in webhook {"error": "[object]
(Swag\\PayPal\\RestApi\\Exception\\PayPalApiException(code:
0):
The error \"WEBHOOK_PATCH_REQUEST_NO_CHANGE\" occurred with the following message:
No change in webhook at /var/www/share/xxxxxxxxx-shop/htdocs/custom/plugins/SwagPayPal/src/RestApi/Client/AbstractClient.php:
116)"}
{"file":"/var/www/share/xxxxxxxxx-shop/htdocs/custom/plugins/SwagPayPal/src/Webhook/Registration/WebhookSystemConfigHelper.php"}
swag_paypal.ERROR:
Swag\PayPal\RestApi\Client\AbstractClient:
handleRequestException (114):
Client error:
`GET https: //api.paypal.com/v1/notifications/webhooks/xxxxxxxxxxxxx` resulted in a `404 Not Found` response: {
"name":
"INVALID_RESOURCE_ID",
"message":
"Resource id is invalid",
"debug_id":
"a02c617342931",
"information_link":
"https:// (truncated...) Resource id is invalid [
{
"name":
"INVALID_RESOURCE_ID",
"message":
"Resource id is invalid",
"debug_id":
"a02c617342931",
"information_link":
"https://developer.paypal.com/docs/api/webhooks/#errors",
"details":[],
"links":[]
},
{"headers":[]}
]
{
"file":"/var/www/share/xxxxxxxxx-shop/htdocs/custom/plugins/SwagPayPal/src/RestApi/Client/AbstractClient.php"
}
Ich habe jetzt schon 3 mal bei Paypal die API Credentials in den Developereinstellungen gelöscht und durch Shopware („Einstellungen>Erweiterungen>Paypal>API Holen“) neu initialisiert. Zwischendurch auch schon den Frontend-Cache geleert → ohne Erfolg.
Was mache ich falsch?