ok, verstehe. Neues Verhalten. Paypal soll sich erst bei “Zahlungspflichtig Bestellen” öffnen
Das tut es leider auch nicht. Aber dann gibts jetzt auch eine Fehlermeldung in den logs.
> [2022-06-29 09:35:28] OXID Logger.ERROR: Error on order create call. ["[object] (OxidSolutionCatalysts\\PayPalApi\\Exception\\ApiException(code: 401): POST https://api.sandbox.paypal.com/v1/oauth2/token returned: 401 Unauthorized\nResponse: \n{\"error\":\"invalid_client\",\"error_description\":\"Client Authentication failed\"}\n\nThe following curl request could be used to simulate a similar request:\n \ncurl -v -X POST \"https://api.sandbox.paypal.com/v1/oauth2/token\" -H \"User-Agent: GuzzleHttp/7\" -H \"Host: api.sandbox.paypal.com\" -H \"Authorization: Basic somelongIDs=\" -H \"Content-Type: application/x-www-form-urlencoded\" -H \"Accept: application/json\" -d grant_type=client_credentials at /var/www/html/vendor/oxid-solution-catalysts/paypal-client/src/Service/BaseService.php:45)\n[stacktrace]\n#0 /var/www/html/vendor/oxid-solution-catalysts/paypal-client/generated/Service/Orders.php(55): OxidSolutionCatalysts\\PayPalApi\\Service\\BaseService->send('POST', '/orders', Array, Array, '{\"intent\":\"CAPT...')\n#1 /var/www/html/vendor/oxid-solution-catalysts/paypal-module/src/Service/Payment.php(110): OxidSolutionCatalysts\\PayPalApi\\Service\\Orders->createOrder(Object(OxidSolutionCatalysts\\PayPalApi\\Model\\Orders\\OrderRequest), 'Oxid_Cart_Payme...', '', 'return=minimal', '')\n#2 /var/www/html/vendor/oxid-solution-catalysts/paypal-module/src/Service/Payment.php(373): OxidSolutionCatalysts\\PayPal\\Service\\Payment->doCreatePayPalOrder(Object(OxidSolutionCatalysts\\PayPal\\Model\\Basket), 'CAPTURE', NULL, NULL, NULL, '', '', 'Oxid_Cart_Payme...', 'https://oxid6.l...', 'https://oxid6.l...')\n#3 /var/www/html/vendor/oxid-solution-catalysts/paypal-module/src/Model/Order.php(223): OxidSolutionCatalysts\\PayPal\\Service\\Payment->doExecuteStandardPayment(Object(OxidSolutionCatalysts\\PayPal\\Model\\Order), Object(OxidSolutionCatalysts\\PayPal\\Model\\Basket), 'CAPTURE')\n#4 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Application/Model/Order.php(519): OxidSolutionCatalysts\\PayPal\\Model\\Order->_executePayment(Object(OxidSolutionCatalysts\\PayPal\\Model\\Basket), Object(OxidEsales\\Eshop\\Application\\Model\\UserPayment))\n#5 /var/www/html/source/modules/digidesk/dd_r6connect/application/models/dd_r6connect_oxorder.php(38): OxidEsales\\EshopCommunity\\Application\\Model\\Order->finalizeOrder(Object(OxidSolutionCatalysts\\PayPal\\Model\\Basket), Object(OxidSolutionCatalysts\\PayPal\\Model\\User), false)\n#6 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Application/Controller/OrderController.php(217): dd_r6connect_oxorder->finalizeOrder(Object(OxidSolutionCatalysts\\PayPal\\Model\\Basket), Object(OxidSolutionCatalysts\\PayPal\\Model\\User))\n#7 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Core/Controller/BaseController.php(524): OxidEsales\\EshopCommunity\\Application\\Controller\\OrderController->execute()\n#8 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(332): OxidEsales\\EshopCommunity\\Core\\Controller\\BaseController->executeFunction('execute')\n#9 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(274): OxidEsales\\EshopCommunity\\Core\\ShopControl->executeAction(Object(OxidSolutionCatalysts\\PayPal\\Controller\\OrderController), 'execute')\n#10 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(137): OxidEsales\\EshopCommunity\\Core\\ShopControl->_process('OxidEsales\\\\Esho...', 'execute', NULL, NULL)\n#11 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Core/Oxid.php(26): OxidEsales\\EshopCommunity\\Core\\ShopControl->start()\n#12 /var/www/html/source/index.php(15): OxidEsales\\EshopCommunity\\Core\\Oxid::run()\n#13 {main}\n"] []
> [2022-06-29 09:35:29] OXID Logger.ERROR: Could not create PayPal order. ["[object] (OxidSolutionCatalysts\\PayPal\\Exception\\PayPalException(code: 0): Could not create PayPal order. at /var/www/html/vendor/oxid-solution-catalysts/paypal-module/src/Exception/PayPalException.php:16)\n[stacktrace]\n#0 /var/www/html/vendor/oxid-solution-catalysts/paypal-module/src/Service/Payment.php(388): OxidSolutionCatalysts\\PayPal\\Exception\\PayPalException::createPayPalOrderFail()\n#1 /var/www/html/vendor/oxid-solution-catalysts/paypal-module/src/Model/Order.php(223): OxidSolutionCatalysts\\PayPal\\Service\\Payment->doExecuteStandardPayment(Object(OxidSolutionCatalysts\\PayPal\\Model\\Order), Object(OxidSolutionCatalysts\\PayPal\\Model\\Basket), 'CAPTURE')\n#2 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Application/Model/Order.php(519): OxidSolutionCatalysts\\PayPal\\Model\\Order->_executePayment(Object(OxidSolutionCatalysts\\PayPal\\Model\\Basket), Object(OxidEsales\\Eshop\\Application\\Model\\UserPayment))\n#3 /var/www/html/source/modules/digidesk/dd_r6connect/application/models/dd_r6connect_oxorder.php(38): OxidEsales\\EshopCommunity\\Application\\Model\\Order->finalizeOrder(Object(OxidSolutionCatalysts\\PayPal\\Model\\Basket), Object(OxidSolutionCatalysts\\PayPal\\Model\\User), false)\n#4 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Application/Controller/OrderController.php(217): dd_r6connect_oxorder->finalizeOrder(Object(OxidSolutionCatalysts\\PayPal\\Model\\Basket), Object(OxidSolutionCatalysts\\PayPal\\Model\\User))\n#5 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Core/Controller/BaseController.php(524): OxidEsales\\EshopCommunity\\Application\\Controller\\OrderController->execute()\n#6 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(332): OxidEsales\\EshopCommunity\\Core\\Controller\\BaseController->executeFunction('execute')\n#7 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(274): OxidEsales\\EshopCommunity\\Core\\ShopControl->executeAction(Object(OxidSolutionCatalysts\\PayPal\\Controller\\OrderController), 'execute')\n#8 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(137): OxidEsales\\EshopCommunity\\Core\\ShopControl->_process('OxidEsales\\\\Esho...', 'execute', NULL, NULL)\n#9 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Core/Oxid.php(26): OxidEsales\\EshopCommunity\\Core\\ShopControl->start()\n#10 /var/www/html/source/index.php(15): OxidEsales\\EshopCommunity\\Core\\Oxid::run()\n#11 {main}\n"] []
Hier scheint er authentificationsporbleme zu haben
Liegt das an der localen domain oxid6.localhost ? Oder möglicherweise an dem webhook, der auf domain.com andgelegt ist, dessen ID ich verwendet habe? (geklaut von anderer sandbox konfig)
Kann ich denn einen Webhook anlegen mit.
https://www.oxid6.localhost/index.php?cl=oscpaypalwebhook
Der bräuchte dann warscheinlich access vom internet oder?
Weil das Modul sagt konfiguration ist alles tutti