Jump to content

PrestaShop cannot validate order: Property Order->payment is empty.


luke.lukas

Recommended Posts

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 by luke.lukas (see edit history)
Link to comment
Share on other sites

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

  • luke.lukas changed the title to PrestaShop cannot validate order: Property Order->payment is empty.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...