# Paypal Plugin: Client Error Response

**URL:** <https://forum.shopware.com/t/paypal-plugin-client-error-response/55677>\
**Category:** Plugins\
**Tags:** offizielle-shopware-\
**Created:** [10. Oktober 2018 um 19:48 UTC](https://forum.shopware.com/t/paypal-plugin-client-error-response/55677 "2018-10-10T19:48:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Broomd](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@Broomd](https://forum.shopware.com/u/Broomd)\
**Post date:** [10. Oktober 2018 um 19:48 UTC](https://forum.shopware.com/t/paypal-plugin-client-error-response/55677/1 "2018-10-10T19:48:12Z")

</div>

Hallo,

&nbsp;

Ich verwende das neue Paypal Plugin in der V 1.0.7, Shopware: 5.5.1 und bekomme das Plugin einfach nicht zum laufen. API Daten usw sind korrekt eingetragen, und Webhook erfolgreich angelegt, beim Checkout bekomm ich den Fehler:

> Client error response [url] [https://api.paypal.com/v1/payments/payment/PAYID-LO7FLAY2F1884886H947083F](https://api.paypal.com/v1/payments/payment/PAYID-LO7FLAY2F1884886H947083F) [status code] 400 [reason phrase] Bad Request in engine/Shopware/Components/HttpClient/GuzzleHttpClient.php on line 154

&nbsp;

```
#0 custom/plugins/SwagPaymentPayPalUnified/PayPalBundle/Services/ClientService.php(159): Shopware\Components\HttpClient\GuzzleHttpClient->patch('https://api.pay...', Array, '[{"op":"add","p...')
#1 custom/plugins/SwagPaymentPayPalUnified/PayPalBundle/Resources/PaymentResource.php(87): SwagPaymentPayPalUnified\PayPalBundle\Services\ClientService->sendRequest('PATCH', 'https://api.pay...', '[{"op":"add","p...')
#2 custom/plugins/SwagPaymentPayPalUnified/Controllers/Frontend/PaypalUnified.php(145): SwagPaymentPayPalUnified\PayPalBundle\Resources\PaymentResource->patch('PAYID-LO7FLAY2F...', Array)
#3 engine/Library/Enlight/Controller/Action.php(193): Shopware_Controllers_Frontend_PaypalUnified->gatewayAction()
#4 engine/Library/Enlight/Controller/Dispatcher/Default.php(549): Enlight_Controller_Action->dispatch('gatewayAction')
#5 engine/Library/Enlight/Controller/Front.php(222): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp))
#6 engine/Shopware/Kernel.php(202): Enlight_Controller_Front->dispatch()
#7 vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(102): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#8 vendor/symfony/http-kernel/HttpCache/HttpCache.php(448): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(Object(Shopware\Kernel), Object(Symfony\Component\HttpFoundation\Request), 1, true)
#9 engine/Shopware/Components/HttpCache/AppCache.php(268): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)
#10 vendor/symfony/http-kernel/HttpCache/HttpCache.php(420): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true)
#11 vendor/symfony/http-kernel/HttpCache/HttpCache.php(317): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(Object(Symfony\Component\HttpFoundation\Request), true)
#12 engine/Shopware/Components/HttpCache/AppCache.php(189): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true)
#13 vendor/symfony/http-kernel/HttpCache/HttpCache.php(192): Shopware\Components\HttpCache\AppCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true)
#14 engine/Shopware/Components/HttpCache/AppCache.php(116): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#15 shopware.php(122): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request))
#16 {main}

```

&nbsp;

Bitte um Hilfe

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)\
**Post date:** [11. Oktober 2018 um 06:22 UTC](https://forum.shopware.com/t/paypal-plugin-client-error-response/55677/2 "2018-10-11T06:22:32Z")

</div>

Hallo,

könntest du mal schauen, was in den Shopware Logs steht? Unter “shopware-root”/var/logs  
Dort sollten ausführlichere Fehlermeldungen zu finden sein.&nbsp;

Viele Grüße aus Schöppingen

![cool](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/86c57fbace799dd4eb1f1b8a2d3bdc1733f0aea1.png "cool")&nbsp;Michael Telgmann

---

<div class="post-metadata">

**Author:** ![Broomd](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@Broomd](https://forum.shopware.com/u/Broomd)\
**Post date:** [11. Oktober 2018 um 06:48 UTC](https://forum.shopware.com/t/paypal-plugin-client-error-response/55677/3 "2018-10-11T06:48:13Z")

</div>

Hallo,

Danke für die schnelle Hilfe!  
Plugin Production:

```
[2018-10-10 22:02:02] plugin.ERROR: PayPal: Could not register webhooks due to a communication failure {"message":"Client error response [url] https://api.paypal.com/v1/notifications/webhooks [status code] 400 [reason phrase] Bad Request","payload":"{\"name\":\"WEBHOOK_URL_ALREADY_EXISTS\",\"message\":\"Webhook URL already exists\",\"debug_id\":\"b49e5ea768675\",\"information_link\":\"https://developer.paypal.com/docs/api/webhooks/#errors\",\"details\":[],\"links\":[]}"} {"uid":"372010f"}

```

&nbsp;

Core Production Log:

```
[2018-10-10 22:02:36] core.CRITICAL: Client error response [url] https://api.paypal.com/v1/payments/payment/PAYID-LO7FVWY9H659779UH829671R [status code] 400 [reason phrase] Bad Request [] {"uid":"ed69600"}
[2018-10-10 22:02:37] core.CRITICAL: Client error response [url] https://api.paypal.com/v1/payments/payment/PAYID-LO7FVWY9H659779UH829671R [status code] 400 [reason phrase] Bad Request [] {"uid":"ed69600"}
[2018-10-10 22:02:37] core.ERROR: GuzzleHttp\Exception\ClientException: Client error response [url] https://api.paypal.com/v1/payments/payment/PAYID-LO7FVWY9H659779UH829671R [status code] 400 [reason phrase] Bad Request in /html/shopware-201809151541/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:89 Stack trace: #0 /html/shopware-201809151541/vendor/guzzlehttp/guzzle/src/Subscriber/HttpError.php(32): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Message\Request), Object(GuzzleHttp\Message\Response)) #1 /html/shopware-201809151541/vendor/guzzlehttp/guzzle/src/Event/Emitter.php(108): GuzzleHttp\Subscriber\HttpError->onComplete(Object(GuzzleHttp\Event\CompleteEvent), 'complete') #2 /html/shopware-201809151541/vendor/guzzlehttp/guzzle/src/RequestFsm.php(91): GuzzleHttp\Event\Emitter->emit('complete', Object(GuzzleHttp\Event\CompleteEvent)) #3 /html/shopware-201809151541/vendor/guzzlehttp/guzzle/src/RequestFsm.php(132): GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction)) #4 /html/shopware-201809151541/vendor/react/promise/src/FulfilledPromise.php(25): GuzzleHttp\RequestFsm->GuzzleHttp\{closure}(Array) #5 /html/shopware-201809151541/vendor/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php(55): React\Promise\FulfilledPromise->then(Object(Closure), NULL, NULL) #6 /html/shopware-201809151541/vendor/guzzlehttp/guzzle/src/Message/FutureResponse.php(43): GuzzleHttp\Ring\Future\CompletedFutureValue->then(Object(Closure), NULL, NULL) #7 /html/shopware-201809151541/vendor/guzzlehttp/guzzle/src/RequestFsm.php(134): GuzzleHttp\Message\FutureResponse::proxy(Object(GuzzleHttp\Ring\Future\CompletedFutureArray), Object(Closure)) #8 /html/shopware-201809151541/vendor/guzzlehttp/guzzle/src/Client.php(165): GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction)) #9 /html/shopware-201809151541/vendor/guzzlehttp/guzzle/src/Client.php(145): GuzzleHttp\Client->send(Object(GuzzleHttp\Message\Request)) #10 /html/shopware-201809151541/engine/Shopware/Components/HttpClient/GuzzleHttpClient.php(152): GuzzleHttp\Client->patch('https://api.pay...', Array) #11 /html/shopware-201809151541/custom/plugins/SwagPaymentPayPalUnified/PayPalBundle/Services/ClientService.php(159): Shopware\Components\HttpClient\GuzzleHttpClient->patch('https://api.pay...', Array, '[{"op":"add","p...') #12 /html/shopware-201809151541/custom/plugins/SwagPaymentPayPalUnified/PayPalBundle/Resources/PaymentResource.php(87): SwagPaymentPayPalUnified\PayPalBundle\Services\ClientService->sendRequest('PATCH', 'https://api.pay...', '[{"op":"add","p...') #13 /html/shopware-201809151541/custom/plugins/SwagPaymentPayPalUnified/Controllers/Frontend/PaypalUnified.php(145): SwagPaymentPayPalUnified\PayPalBundle\Resources\PaymentResource->patch('PAYID-LO7FVWY9H...', Array) #14 /html/shopware-201809151541/engine/Library/Enlight/Controller/Action.php(193): Shopware_Controllers_Frontend_PaypalUnified->gatewayAction() #15 /html/shopware-201809151541/engine/Library/Enlight/Controller/Dispatcher/Default.php(549): Enlight_Controller_Action->dispatch('gatewayAction') #16 /html/shopware-201809151541/engine/Library/Enlight/Controller/Front.php(222): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp)) #17 /html/shopware-201809151541/engine/Shopware/Kernel.php(202): Enlight_Controller_Front->dispatch() #18 /html/shopware-201809151541/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(102): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #19 /html/shopware-201809151541/vendor/symfony/http-kernel/HttpCache/HttpCache.php(448): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(Object(Shopware\Kernel), Object(Symfony\Component\HttpFoundation\Request), 1, true) #20 /html/shopware-201809151541/engine/Shopware/Components/HttpCache/AppCache.php(268): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #21 /html/shopware-201809151541/vendor/symfony/http-kernel/HttpCache/HttpCache.php(420): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true) #22 /html/shopware-201809151541/vendor/symfony/http-kernel/HttpCache/HttpCache.php(317): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(Object(Symfony\Component\HttpFoundation\Request), true) #23 /html/shopware-201809151541/engine/Shopware/Components/HttpCache/AppCache.php(189): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true) #24 /html/shopware-201809151541/vendor/symfony/http-kernel/HttpCache/HttpCache.php(192): Shopware\Components\HttpCache\AppCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true) #25 /html/shopware-201809151541/engine/Shopware/Components/HttpCache/AppCache.php(116): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /html/shopware-201809151541/shopware.php(122): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request)) #27 {main} Next Shopware\Components\HttpClient\RequestException: Client error response [url] https://api.paypal.com/v1/payments/payment/PAYID-LO7FVWY9H659779UH829671R [status code] 400 [reason phrase] Bad Request in /html/shopware-201809151541/engine/Shopware/Components/HttpClient/GuzzleHttpClient.php:154 Stack trace: #0 /html/shopware-201809151541/custom/plugins/SwagPaymentPayPalUnified/PayPalBundle/Services/ClientService.php(159): Shopware\Components\HttpClient\GuzzleHttpClient->patch('https://api.pay...', Array, '[{"op":"add","p...') #1 /html/shopware-201809151541/custom/plugins/SwagPaymentPayPalUnified/PayPalBundle/Resources/PaymentResource.php(87): SwagPaymentPayPalUnified\PayPalBundle\Services\ClientService->sendRequest('PATCH', 'https://api.pay...', '[{"op":"add","p...') #2 /html/shopware-201809151541/custom/plugins/SwagPaymentPayPalUnified/Controllers/Frontend/PaypalUnified.php(145): SwagPaymentPayPalUnified\PayPalBundle\Resources\PaymentResource->patch('PAYID-LO7FVWY9H...', Array) #3 /html/shopware-201809151541/engine/Library/Enlight/Controller/Action.php(193): Shopware_Controllers_Frontend_PaypalUnified->gatewayAction() #4 /html/shopware-201809151541/engine/Library/Enlight/Controller/Dispatcher/Default.php(549): Enlight_Controller_Action->dispatch('gatewayAction') #5 /html/shopware-201809151541/engine/Library/Enlight/Controller/Front.php(222): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp)) #6 /html/shopware-201809151541/engine/Shopware/Kernel.php(202): Enlight_Controller_Front->dispatch() #7 /html/shopware-201809151541/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(102): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #8 /html/shopware-201809151541/vendor/symfony/http-kernel/HttpCache/HttpCache.php(448): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(Object(Shopware\Kernel), Object(Symfony\Component\HttpFoundation\Request), 1, true) #9 /html/shopware-201809151541/engine/Shopware/Components/HttpCache/AppCache.php(268): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #10 /html/shopware-201809151541/vendor/symfony/http-kernel/HttpCache/HttpCache.php(420): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true) #11 /html/shopware-201809151541/vendor/symfony/http-kernel/HttpCache/HttpCache.php(317): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(Object(Symfony\Component\HttpFoundation\Request), true) #12 /html/shopware-201809151541/engine/Shopware/Components/HttpCache/AppCache.php(189): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true) #13 /html/shopware-201809151541/vendor/symfony/http-kernel/HttpCache/HttpCache.php(192): Shopware\Components\HttpCache\AppCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true) #14 /html/shopware-201809151541/engine/Shopware/Components/HttpCache/AppCache.php(116): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #15 /html/shopware-201809151541/shopware.php(122): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request)) #16 {main} [] {"uid":"ed69600"}

```

Liebe Grüße und vielen Dank für die Hilfe!

---

<div class="post-metadata">

**Author:** ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)\
**Post date:** [11. Oktober 2018 um 06:57 UTC](https://forum.shopware.com/t/paypal-plugin-client-error-response/55677/4 "2018-10-11T06:57:59Z")

</div>

Hallo,

ist der Fehler oben, der einzige Fehler? Dieser sagt eigentlich nur, dass der Webhook bereits erstellt worden ist, was erstmal nicht so schlimm ist.&nbsp;  
Die anderen Fehler lassen darauf schließen, dass aber an anderer Stelle die Ursache zu suchen ist.

Viele Grüße aus Schöppingen

![cool](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/86c57fbace799dd4eb1f1b8a2d3bdc1733f0aea1.png "cool")&nbsp;Michael Telgmann

---

<div class="post-metadata">

**Author:** ![Broomd](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@Broomd](https://forum.shopware.com/u/Broomd)\
**Post date:** [11. Oktober 2018 um 07:08 UTC](https://forum.shopware.com/t/paypal-plugin-client-error-response/55677/5 "2018-10-11T07:08:17Z")

</div>

Hallo,

In beiden Logs sind sonst keine Fehler zu finden!

Wie gehe ich jetzt am besten vor?

&nbsp;

Lg

---

<div class="post-metadata">

**Author:** ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)\
**Post date:** [11. Oktober 2018 um 12:29 UTC](https://forum.shopware.com/t/paypal-plugin-client-error-response/55677/6 "2018-10-11T12:29:33Z")

</div>

Hallo,

der Fehler scheint an dieser Stelle aufzutauchen:&nbsp;[SwagPaymentPayPalUnified/PaypalUnified.php at master · shopwareLabs/SwagPaymentPayPalUnified · GitHub](https://github.com/shopwareLabs/SwagPaymentPayPalUnified/blob/master/Controllers/Frontend/PaypalUnified.php#L143)  
Vielleicht kannst du dort weiter debuggen.&nbsp;

Viele Grüße aus Schöppingen

![cool](http://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/shopware.png "cool")&nbsp;Michael Telgmann

---

<div class="post-metadata">

**Author:** ![phil123](https://avatars.discourse-cdn.com/v4/letter/p/5f9b8f/32.png) [@phil123](https://forum.shopware.com/u/phil123)\
**Post date:** [2. November 2018 um 16:07 UTC](https://forum.shopware.com/t/paypal-plugin-client-error-response/55677/7 "2018-11-02T16:07:50Z")

</div>

Hast Du hierzu schon eine Lösung gefunden? Ich habe genau die gleiche Fehlermeldung, allerdings&nbsp;nur für die Länder Dänemark und Norwegen.

---

<div class="post-metadata">

**Author:** ![kulli](https://avatars.discourse-cdn.com/v4/letter/k/a3d4f5/32.png) [@kulli](https://forum.shopware.com/u/kulli)\
**Post date:** [2. November 2018 um 16:44 UTC](https://forum.shopware.com/t/paypal-plugin-client-error-response/55677/8 "2018-11-02T16:44:34Z")

</div>

Update auf 5.2.2 bringt nicht die Lösung ?

Kontrollier auch nochmal alle Einstellungen auf z.B. angehängte Leerzeichen (copy and paste).
