luke.lukas Posted November 3, 2022 Share Posted November 3, 2022 (edited) Hello, Whenever I enable CacheApc in the performance section, I'll get this error in my Customer Service area multiple times per person, but it rarely happens, maybe twice a day, but sometimes there's periods of time where it effects multiple people. This is the error I receive: - 30/10/2022 - 21:04 This message is sent automatically by module PrestaShop Checkout A customer encountered a processing payment error : Customer identifier: 672519 Cart identifier: 654434 PayPal order identifier: REDACTED Exception identifier: 40 Exception detail: PrestaShop cannot validate order: Property Order->payment is empty. If you need assistance, please contact our Support Team on PrestaShop Checkout configuration page on Help subtab. If anybody knows why that'd be great. I see that there's a section to 'add a server' in the performance section, but I haven't touched it. There's a dev website on another IP on the same server that sometimes has the cache enabled too, if there's some sort of crossover bugging it; the dev site is a clone of the original with a different database. Edited November 3, 2022 by luke.lukas (see edit history) Link to comment Share on other sites More sharing options...
luke.lukas Posted November 3, 2022 Author Share Posted November 3, 2022 I made an error_log of the code in modules/ps_checkout/src/ValidateOrder.php on line 199. try { $module->validateOrder( $payload['cartId'], (int) $this->getOrderState($psCheckoutCart->paypal_funding), $payload['amount'], $fundingSourceTranslationProvider->getPaymentMethodName($psCheckoutCart->paypal_funding), null, [ 'transaction_id' => $transactionIdentifier, ], $payload['currencyId'], false, $payload['secureKey'] ); } catch (\ErrorException $exception) { // Notice or warning from PHP $exceptionHandler->handle($exception, false); } catch (\Exception $exception) { #here $psCheckoutCart->paypal_funding came back as null when the order failed. $payload resulted in: {"cartId":654434,"amount":16.44,"currencyId":1,"secureKey":"redacted"}, which looks normal transactionid looks normal. Link to comment Share on other sites More sharing options...
luke.lukas Posted November 4, 2022 Author Share Posted November 4, 2022 I've noticed that the pscheckout_cart table has 2 rows for an id_cart, one with created, and the other as completed. The completed row has NULL for the paypal_token, paypal_funding, and paypal_token_expire columns. isHostedFields is also set to 0. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now