Automatic Invoice Number Input

The code given below helps to recieve the paid-up invoice number from the user without forcing him to input it manually. The code contains the ActiveX element, and therefore it can work only in Internet Explorer browser, to enable ActiveX elements in Netscape Navigator browser you should install the necessary plug-in.

<OBJECT ID="WMAcceptor" CLASSID="CLSID:463ED66E-431B-11D2-ADB0-0080C83DA4EB" CODEBASE="http://download.webmoney.ru/wmacceptor.cab#version=1,0,0,31" WIDTH=92 HEIGHT=94> <PARAM NAME="nState" VALUE=8> </OBJECT> <SCRIPT FOR="WMAcceptor" EVENT="OnDropInv(strLoginName,nInvoice)"> //the code that handles the invoice number sending event //strLoginName - user's WM identifier //nInvoice - paid-up invoice number </SCRIPT>

At this page the code looks as follows:

After the code is executed the ActiveX element is set to the paid-up mode of invoice number receiving from the WebMoney Keeper application. In order to see how it works, try to Drag&Drop a paid-up invoice from the invoices list of WebMoney Keeper to the cash-desk picture. Information message will show the invoice number and WM identifier.

The given code might be use for automated payment receiving while checking whether the user has paid the invoice using software (script) of the web-resource.

Feature! The string <PARAM NAME="nState" VALUE=8> is included in the code of the ActiveX element mentioned above. This string defines the work mode. The rest of the modes (1, 2, 4, 16, 32, etc.) are described in the other subsections. The modes can be combined (their values are added) in order to perform several funcation at the same time. Thus in the mode 35 (1+2+32) ActiveX element will check whether WebMoney Keeper is installed and started on the client's computer, and besides it will work as a statistics counter.

The usage of WEBMONEY and WEBMONEY TRANSFER graphic logos by the site holders is authorized by trademark owners.
Copyright WebMoney © 1997-2012
Contact Us  |  Help  |  Terms of Use

For all questions please contact us WebMoney Technical Support