Error when there is no payment execution status.

Created on 12 December 2023, 7 months 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.69.0 2024