Model/DbGateways/OrderPaymentDbGateway.php
public function delete($paymentId)
    {
        $db = $this->getDb();
        $db->startTransaction();

        $deleteResult = $db->execute('DELETE FROM `oepaypal_orderpayments` WHERE `oepaypal_paymentid` = ' . $db->quote($paymentId));
        $deleteCommentResult = $db->execute('DELETE FROM `oepaypal_orderpaymentcomments` WHERE `oepaypal_paymentid` = ' . $db->quote($paymentId));

        $result = ($deleteResult !== false) || ($deleteCommentResult !== false);

        if ($result) {
            $db->commitTransaction();
        } else {
            $db->rollbackTransaction();
        }

        return $result;
    }
public function delete($paymentId)
    {
        $db = $this->getDb();
        $db->startTransaction();

        $deleteResult = $db->execute('DELETE FROM `oepaypal_orderpayments` WHERE `oepaypal_paymentid` = ' . $db->quote($paymentId));
        $deleteCommentResult = $db->execute('DELETE FROM `oepaypal_orderpaymentcomments` WHERE `oepaypal_paymentid` = ' . $db->quote($paymentId));

        $result = ($deleteResult !== false) || ($deleteCommentResult !== false);

        if ($result) {
            $db->commitTransaction();
        } else {
            $db->rollbackTransaction();
        }

        return $result;
    }
public function delete ( $ paymentId ) { $ db = $ this -> getDb ( ) ; $ db -> startTransaction ( ) ; $ deleteResult = $ db -> execute ( 'DELETE FROM `oepaypal_orderpayments` WHERE `oepaypal_paymentid` = ' . $ db -> quote ( $ paymentId ) ) ; $ deleteCommentResult = $ db -> execute ( 'DELETE FROM `oepaypal_orderpaymentcomments` WHERE `oepaypal_paymentid` = ' . $ db -> quote ( $ paymentId ) ) ; $ result = ( $ deleteResult !== false ) || ( $ deleteCommentResult !== false ) ; if ( $ result ) { $ db -> commitTransaction ( ) ; } else { $ db -> rollbackTransaction ( ) ; } return $ result ; }
Delete PayPal order payment data from database.

@param string $paymentId Order id.

@return bool
Delete PayPal order payment data from database .