Automatic WM Identifier Input

The code given below helps to get user's WM identifier without forcing him to input his requisite 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=4> </OBJECT> <SCRIPT LANGUAGE="JavaScript" FOR="WMAcceptor" EVENT="OnDropWM(strLoginName, hWnd, strAddress)"> <!-- // The code that handles coin Drag&amp;Drop event //strLoginName - customer's WM identifier //hWnd - internal value, which should be transferred to the mode witout changes //ActiveX nState=16 (the automatic invoices payment mode) // strAddress - delivery address and cutomer's comments //--> </SCRIPT>

At this page the code will look as follows:

After the code is executed the ActiveX element is set to the mode of receiving the coin from the user's WebMoney Keeper application. Inorder to see, how it works, try to Drag&Drop the coin from WM Keeper icon to the cash-desk and type in some delivery address.

This code can be used in the complex method of payments reeceiving with issuing an invoice using the software (the script) or the web-resource.

Feature! The string <PARAM NAME="nState" VALUE=4> is included in the code of the ActiveX element mentioned above. This string defines the work mode. The rest of the modes (1, 2, 8, 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