BroomdBroomd MitgliedKommentare: 3 Danke erhalten: 0 Mitglied seit: August 2017

Hallo,

 

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 [status code] 400 [reason phrase] Bad Request in engine/Shopware/Components/HttpClient/GuzzleHttpClient.php on line 154

 

#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}

 

Bitte um Hilfe

 

 

Antworten

  • Michael TelgmannMichael Telgmann ModeratorKommentare: 698 Danke erhalten: 220 Mitglied seit: Juni 2014

    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. 

    Viele Grüße aus Schöppingen

    cool Michael Telgmann

  • BroomdBroomd MitgliedKommentare: 3 Danke erhalten: 0 Mitglied seit: August 2017

    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"}

     

    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!

  • Michael TelgmannMichael Telgmann ModeratorKommentare: 698 Danke erhalten: 220 Mitglied seit: Juni 2014

    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. 
    Die anderen Fehler lassen darauf schließen, dass aber an anderer Stelle die Ursache zu suchen ist.

    Viele Grüße aus Schöppingen

    cool Michael Telgmann

  • BroomdBroomd MitgliedKommentare: 3 Danke erhalten: 0 Mitglied seit: August 2017

    Hallo,

    In beiden Logs sind sonst keine Fehler zu finden!

    Wie gehe ich jetzt am besten vor?

     

    Lg

  • Michael TelgmannMichael Telgmann ModeratorKommentare: 698 Danke erhalten: 220 bearbeitet 11. Oktober Mitglied seit: Juni 2014

    Hallo,

    der Fehler scheint an dieser Stelle aufzutauchen: https://github.com/shopwareLabs/SwagPaymentPayPalUnified/blob/master/Controllers/Frontend/PaypalUnified.php#L143
    Vielleicht kannst du dort weiter debuggen. 

    Viele Grüße aus Schöppingen

    cool Michael Telgmann

Anmelden oder Registrieren, um zu kommentieren.