# Problem: Paypal Zahlung abschließen

**URL:** https://forum.shopware.com/t/problem-paypal-zahlung-abschliessen/92822
**Category:** Allgemein
**Created:** [7. Februar 2022 um 13:58 UTC](https://forum.shopware.com/t/problem-paypal-zahlung-abschliessen/92822 "2022-02-07T13:58:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![G-K](https://avatars.discourse-cdn.com/v4/letter/g/a183cd/32.png) [@G-K](https://forum.shopware.com/u/G-K)
#### Post date: [7. Februar 2022 um 13:58 UTC](https://forum.shopware.com/t/problem-paypal-zahlung-abschliessen/92822/1 "2022-02-07T13:58:30Z")

</div>

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](http://xxxxx.de/payment/finalize-transaction?_sw_payment_token=xxxxxxxx.xxxxxxxx)

Unter dieser URL erhält man dann eine White-Page mit folgender Fehlermeldung:

```auto
{
	"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

```auto

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? 😨

---

<div class="post-metadata">

### Author: ![mexmano](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@mexmano](https://forum.shopware.com/u/mexmano)
#### Post date: [17. Februar 2022 um 21:11 UTC](https://forum.shopware.com/t/problem-paypal-zahlung-abschliessen/92822/2 "2022-02-17T21:11:18Z")

</div>

Hallo, ich habe das gleiche Problem. Gibt es eine Lösung dazu?

---

<div class="post-metadata">

### Author: ![service3](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@service3](https://forum.shopware.com/u/service3)
#### Post date: [19. Februar 2022 um 21:12 UTC](https://forum.shopware.com/t/problem-paypal-zahlung-abschliessen/92822/3 "2022-02-19T21:12:16Z")

</div>

Ist evtl. PayPal PLUS aktiviert aber gar nicht beantragt?

---

<div class="post-metadata">

### Author: ![G-K](https://avatars.discourse-cdn.com/v4/letter/g/a183cd/32.png) [@G-K](https://forum.shopware.com/u/G-K)
#### Post date: [21. Februar 2022 um 07:38 UTC](https://forum.shopware.com/t/problem-paypal-zahlung-abschliessen/92822/4 "2022-02-21T07:38:35Z")

</div>

Wir haben die Lösung gefunden:  
Seit einem der letzten Updates wurde eine Minutenangabe für die Warenkorb-Session bei Shopware hinzugefügt. Diese sollte eigentlich initial auf 30 Minuten stehen. Bei uns stand sie auf 0 Minuten.

Im Admin Bereich in den Warenkorb-Einstellungen einfach die Zeit hochsetzen, danach ist der Fehler behoben.

---

<div class="post-metadata">

### Author: ![mexmano](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@mexmano](https://forum.shopware.com/u/mexmano)
#### Post date: [23. Februar 2022 um 16:25 UTC](https://forum.shopware.com/t/problem-paypal-zahlung-abschliessen/92822/5 "2022-02-23T16:25:15Z")

</div>

Vielen vielen DANK!!!
