Error when there is no payment execution status.

Created on 12 December 2023, about 1 year ago

Problem/Motivation

When retrieving payment results and there is a payment entity with no payment execution status the isCompleted() function triggers an exception which is blocking from retrieving valid entities.

Error: Call to a member function isCompleted() on bool in Drupal\payment\Entity\Payment\PaymentAccessControlHandler->checkAccess() (line 55 of modules/contrib/payment/src/Entity/Payment/PaymentAccessControlHandler.php).

Proposed resolution

Add extra check for getPaymentExecutionResult() returning FALSE.

🐛 Bug report
Status

Active

Version

2.2

Component

Code

Created by

🇳🇱Netherlands TommieCrawford

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024