View Issue Details

IDProjectCategoryView StatusLast Update
0007464module PayPal Checkoutmodule PayPal checkout - subpublic2023-05-16 15:56
Reportermichael_keiluweit Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.3.0 / 1.3.0 
Fixed in Version2.3.0 / 1.3.0 
Summary0007464: Pending GiroPay payment leads to maintenance mode, after doing a log in
DescriptionIn case the GiroPay payment is pending and the order wasn't cleaned up yet (PSPAYPAL-638), the shop will throw an exception, in case the customer wants to log in again.
Steps To Reproduce- Install EE 6.5.3 with demodata.
- Install PayPal 2.3.0 (RC 2).
- Activate Sandbox mode.
- Activate the payment oscpaypal_giropay.

- Register a new user in the frontend.
- Put the product Kite CORE GT (product number 1205) into the basket.
- Go to checkout step 3, choose GiroPay.
- Go to checkout step 4, confirm.
- A new browser tab will be opened to choose which GiroPay payment action simulation should be happen. Close the browser tab without choosing one.
- Go back to the shop frontend.
- Log out (My account -> Log out).
- Log in with the same customer account.
- You will see the maintenance site and an exception was logged in the file oxideshop.log.
Additional Information
[2023-05-09 17:03:37] OXID Logger.ERROR: Autoconfiguration failed: Client error: `POST https://api.sandbox.paypal.com/v1/oauth2/token` resulted in a `401 Unauthorized` response:
{"error":"invalid_request","error_description":"Authorization Header must have client_id and secret"}
["[object] (OxidSolutionCatalysts\\PayPal\\Exception\\OnboardingException(code: 0): Autoconfiguration failed: Client error: `POST https://api.sandbox.paypal.com/v1/oauth2/token` resulted in a `401 Unauthorized` response:\n{\"error\":\"invalid_request\",\"error_description\":\"Authorization Header must have client_id and secret\"}\n at /var/www/oxideshop/vendor/oxid-solution-catalysts/paypal-module/src/Exception/OnboardingException.php:31)\n[stacktrace]\n#0 /var/www/oxideshop/vendor/oxid-solution-catalysts/paypal-module/src/Core/Onboarding/Onboarding.php(36): OxidSolutionCatalysts\\PayPal\\Exception\\OnboardingException::autoConfiguration('Client error: `...')\n#1 /var/www/oxideshop/vendor/oxid-solution-catalysts/paypal-module/src/Controller/Admin/PayPalConfigController.php(386): OxidSolutionCatalysts\\PayPal\\Core\\Onboarding\\Onboarding->autoConfigurationFromCallback()\n#2 /var/www/oxideshop/vendor/oxid-solution-catalysts/paypal-module/src/Controller/Admin/PayPalConfigController.php(368): OxidSolutionCatalysts\\PayPal\\Controller\\Admin\\PayPalConfigController->autoConfiguration()\n#3 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/Controller/BaseController.php(534): OxidSolutionCatalysts\\PayPal\\Controller\\Admin\\PayPalConfigController->returnFromSignup()\n#4 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ee/Core/Controller/BaseController.php(64): OxidEsales\\EshopCommunity\\Core\\Controller\\BaseController->executeFunction('returnFromSignu...')\n#5 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(347): OxidEsales\\EshopEnterprise\\Core\\Controller\\BaseController->executeFunction('returnFromSignu...')\n#6 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(280): OxidEsales\\EshopCommunity\\Core\\ShopControl->executeAction(Object(OxidSolutionCatalysts\\PayPal\\Controller\\Admin\\PayPalConfigController), 'returnFromSignu...')\n#7 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(142): OxidEsales\\EshopCommunity\\Core\\ShopControl->_process('OxidSolutionCat...', 'returnFromSignu...', NULL, NULL)\n#8 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/Oxid.php(27): OxidEsales\\EshopCommunity\\Core\\ShopControl->start()\n#9 /var/www/oxideshop/source/index.php(16): OxidEsales\\EshopCommunity\\Core\\Oxid::run()\n#10 /var/www/oxideshop/source/admin/index.php(12): require_once('/var/www/oxides...')\n#11 {main}\n"] []
[2023-05-09 17:24:15] OXID Logger.ERROR: OxidSolutionCatalysts\PayPal\Core\PayPalDefinitions::isPayPalPayment(): Argument #1 ($paymentId) must be of type string, null given, called in /var/www/oxideshop/vendor/oxid-solution-catalysts/paypal-module/src/Core/PayPalSession.php on line 96 ["[object] (TypeError(code: 0): OxidSolutionCatalysts\\PayPal\\Core\\PayPalDefinitions::isPayPalPayment(): Argument #1 ($paymentId) must be of type string, null given, called in /var/www/oxideshop/vendor/oxid-solution-catalysts/paypal-module/src/Core/PayPalSession.php on line 96 at /var/www/oxideshop/vendor/oxid-solution-catalysts/paypal-module/src/Core/PayPalDefinitions.php:499)\n[stacktrace]\n#0 /var/www/oxideshop/vendor/oxid-solution-catalysts/paypal-module/src/Core/PayPalSession.php(96): OxidSolutionCatalysts\\PayPal\\Core\\PayPalDefinitions::isPayPalPayment(NULL)\n#1 /var/www/oxideshop/vendor/oxid-solution-catalysts/paypal-module/src/Model/User.php(132): OxidSolutionCatalysts\\PayPal\\Core\\PayPalSession::isPayPalExpressOrderActive()\n#2 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Application/Model/User.php(1458): OxidSolutionCatalysts\\PayPal\\Model\\User->onLogin('michael.keiluwe...', 'michael.keiluwe...')\n#3 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Application/Component/UserComponent.php(205): OxidEsales\\EshopCommunity\\Application\\Model\\User->login('michael.keiluwe...', 'michael.keiluwe...', NULL)\n#4 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Application/Component/UserComponent.php(273): OxidEsales\\EshopCommunity\\Application\\Component\\UserComponent->login()\n#5 /var/www/oxideshop/vendor/oxid-solution-catalysts/paypal-module/src/Component/UserComponent.php(35): OxidEsales\\EshopCommunity\\Application\\Component\\UserComponent->login_noredirect()\n#6 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/Controller/BaseController.php(534): OxidSolutionCatalysts\\PayPal\\Component\\UserComponent->login_noredirect()\n#7 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ee/Core/Controller/BaseController.php(64): OxidEsales\\EshopCommunity\\Core\\Controller\\BaseController->executeFunction('login_noredirec...')\n#8 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Application/Controller/FrontendController.php(548): OxidEsales\\EshopEnterprise\\Core\\Controller\\BaseController->executeFunction('login_noredirec...')\n#9 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(398): OxidEsales\\EshopCommunity\\Application\\Controller\\FrontendController->init()\n#10 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(278): OxidEsales\\EshopCommunity\\Core\\ShopControl->_initializeViewObject('OxidEsales\\\\Esho...', 'login_noredirec...', NULL, NULL)\n#11 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(142): OxidEsales\\EshopCommunity\\Core\\ShopControl->_process('OxidEsales\\\\Esho...', 'login_noredirec...', NULL, NULL)\n#12 /var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/Oxid.php(27): OxidEsales\\EshopCommunity\\Core\\ShopControl->start()\n#13 /var/www/oxideshop/source/index.php(16): OxidEsales\\EshopCommunity\\Core\\Oxid::run()\n#14 {main}\n"] []



Workaround: Delete the cookies.
TagsNo tags attached.

Activities

There are no notes attached to this issue.