Php QB桌面:获取错误通过getLastError()从应用程序收到的错误消息:

时间:2016-10-24 16:53:03

标签: php quickbooks intuit-partner-platform

我正在添加付款。日志说请求是" q"但从未处理过。没有确切的错误。

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桌面显示:通过getLastError()从应用程序收到的错误消息: 数据库表&#34; quickbooks_queue&#34;字段&#34; qb_status&#34;有&#34; q&#34;在它。

0 个答案:

没有答案