quickbooks - Php QB Desktop: getting error Error message received from application via getLastError():

981

I am adding payment received. Logs say request is "q" but never processed. No exact error.

public function _loginSuccess($requestID, $user, $hook, &$err, $hook_data, $callback_config){
    $Queue = new QuickBooks_WebConnector_Queue($this->DSN);
    $Queue->enqueue(QUICKBOOKS_ADD_RECEIVEPAYMENT, 100);
    return true;
}

public function _addReceivePaymentRequest($requestID, $user, $action, $ID, $extra, &$err, $last_action_time, $last_actionident_time, $version, $locale){
        $xml = '<?xml version="1.0" encoding="utf-8"?>
            <?qbxml version="2.1"?>
            <QBXML>
            <QBXMLMsgsRq onError="stopOnError">
            <ReceivePaymentAddRq requestID="'.$requestID.'">
                <ReceivePaymentAdd>
                    <CustomerRef>
                        <FullName>John Miller</FullName>
                    </CustomerRef>
                    <TxnDate>2016-10-13</TxnDate>
                    <RefNumber>18215417</RefNumber>
                    <TotalAmount>10.2</TotalAmount>
                    <PaymentMethodRef>
                        <FullName>Visa</FullName>
                    </PaymentMethodRef>
                    <AppliedToTxnAdd>
                        <TxnID>42B-4517541</TxnID>
                        <PaymentAmount>10.2</PaymentAmount>
                    </AppliedToTxnAdd>
                </ReceivePaymentAdd>
            </ReceivePaymentAddRq>
            </QBXMLMsgsRq>
            </QBXML>';

    return $xml;
}

public function _catchallErrors($requestID, $user, $action, $ID, $extra, &$err, $xml, $errnum, $errmsg){
    return true;
}

QB Desktop showing: Error message received from application via getLastError(): DB table "quickbooks_queue" field "qb_status" has "q" in it.

People are also looking for solutions to the problem: php - Wordpress pagination not visible from loop

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.