“ReceivePaymentToDepositQuery”中的Quickbooks桌面php库问题

I have been using quickbooks desktop php library for about an year now. My basic workflow in current system is:

. Enqueue requests by making api calls. . Import the qwc file in the connector and run. it will pull the enqueued requests from server, process them and return the response back to the server.

This is how my code base looks like: https://github.com/consolibyte/quickbooks-php/blob/master/docs/web_connector/example_web_connector.php

By following above code base, i am able to query the invoices, customers, accounts, items.... etc. But my request for getting the list of undeposited payments is not working. I got the request xml from here:

https://developer-static.intuit.com/qbSDK-current/Common/newOSR/index.html

Just select "ReceivePaymentToDepositQueryRq" from the dropdown, you will see the xml. I have also printed the final request xml that gets formed in logs. It looks like this:

<?xml version="1.0" encoding="utf-8"?>

<?qbxml version="13.0"?>

<QBXML>

<QBXMLMsgsRq onError="stopOnError">

    <ReceivePaymentToDepositQueryRq metaData="MetaDataAndResponseData">

        <IncludeRetElement>TxnLineID</IncludeRetElement>

        <IncludeRetElement>TxnType</IncludeRetElement>

        <IncludeRetElement>CustomerRef</IncludeRetElement>

        <IncludeRetElement>TxnDate</IncludeRetElement>

        <IncludeRetElement>RefNumber</IncludeRetElement>

        <IncludeRetElement>Amount</IncludeRetElement>

        <IncludeRetElement>CurrencyRef</IncludeRetElement>

        <IncludeRetElement>ExchangeRate</IncludeRetElement>

        <IncludeRetElement>AmountInHomeCurrency</IncludeRetElement>

    </ReceivePaymentToDepositQueryRq>

</QBXMLMsgsRq>

</QBXML>

Everything looks good till this point. But the issue is that i am not getting the result back. It is not even giving any error detail which is more painful. It would be great if any of you can help me out. Thanks in advance.

Note: In above xml, i have tried both with and without <IncludeRetElement> tags. Didn't work in both cases.

As requested by @Keith in the comments i have added my code here:

function _quickbooks_ReceivePaymentToDeposit_request($requestID, $user, $action, $ID, $extra, &$err, $last_action_time, $last_actionident_time, $version, $locale)

{

$xml = '<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="13.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<ReceivePaymentToDepositQueryRq metaData="MetaDataAndResponseData">
<IncludeRetElement>TxnLineID</IncludeRetElement>
<IncludeRetElement>TxnType</IncludeRetElement>
<IncludeRetElement>CustomerRef</IncludeRetElement>
<IncludeRetElement>TxnDate</IncludeRetElement>
<IncludeRetElement>RefNumber</IncludeRetElement>
<IncludeRetElement>Amount</IncludeRetElement>
<IncludeRetElement>CurrencyRef</IncludeRetElement>
<IncludeRetElement>ExchangeRate</IncludeRetElement>
<IncludeRetElement>AmountInHomeCurrency</IncludeRetElement>
</ReceivePaymentToDepositQueryRq>
</QBXMLMsgsRq>
</QBXML>';

return $xml;

}

function _quickbooks_ReceivePaymentToDeposit_response($requestID, $user, $action, $ID, $extra, &$err, $last_action_time, $last_actionident_time, $xml, $idents) {

$Createdon = date('Ymd');
$file = "logs/$Createdon.txt";
if (!file_exists($file)) {
    $myFile = fopen($file, "w") or die("Unable to open file!");
    fclose($myFile);
}
$current = file_get_contents($file);
$current .= "

" . date("h:i:sa") . "
" . $xml . "
";
file_put_contents($file, $current);

}