src/Model/Payment.php
protected function getPaymentForEvent(int $iPaymentId): Resource
    {
        $oPayment = $this->getById($iPaymentId);
        if (empty($oPayment)) {
            throw new ModelException('Invalid payment ID');
        }
        return $oPayment;
    }
protected function getPaymentForEvent(int $iPaymentId): Resource
    {
        $oPayment = $this->getById($iPaymentId);
        if (empty($oPayment)) {
            throw new ModelException('Invalid payment ID');
        }
        return $oPayment;
    }
protected function getPaymentForEvent ( int $ iPaymentId ) : Resource { $ oPayment = $ this -> getById ( $ iPaymentId ) ; if ( empty ( $ oPayment ) ) { throw new ModelException ( 'Invalid payment ID' ) ; } return $ oPayment ; }
Get a payment in a suitable format for the event triggers

@param int $iPaymentId The payment ID

@return Resource
@throws \Nails\Common\Exception\ModelException
Get a payment in a suitable format for the event triggers