src/Payum/Core/Bridge/Zend/Storage/TableGatewayStorage.php
protected function getModelId($model)
    {
        $rp = new \ReflectionProperty($model, $this->idField);
        $rp->setAccessible(true);
        $id = $rp->getValue($model);
        $rp->setAccessible(false);

        return $id;
    }
protected function getModelId($model)
    {
        $rp = new \ReflectionProperty($model, $this->idField);
        $rp->setAccessible(true);
        $id = $rp->getValue($model);
        $rp->setAccessible(false);

        return $id;
    }
@param object $model

@return mixed