public function capture($paymentId, $contractId = null)
    {
        $class = $this->resourceMetadata->resourceClass;

        $object = [
            'contract' => $contractId,
        ];

        $res = $this->execute($paymentId, 'capture', null, $object, $class);

        if ($res) {
            return true;
        }

        return false;
    }