In order to use WMSigner, you should:
- be able to save, register and run a server ActiveX (WMSigner) on PC (if your website is hosted by a third party's web server, you should ask your provider to save, register and run WMSigner);
- be able to save the key file (keys.kwm by default) used by your resource on the computer. Please keep in mind that you should protect this file, since if anything happens to that key, you will lose access to your WM-ID and funds.
Compiled WMSignerX.dll can be downloaded
here.
If necessary, you can compile dll from the source code of WMSigner exe.
WMSignerX.dll Installation
To run WMSigner, you just need a WMSignerX.dll.
Save WMSignerX.dll into your server's directory. In order to register ActiveX object, you should give the following command (the catalogue where the file is stored is current):
regsvr32 WMSignerX.dll
Use of WMSigner
You can download a sample of WMSignerX use (ASP - JScript ) here.
In the description of each interface you will find a special line with request parameters that should be signed by WMSignerX. This line will be called PlanStr. Below you can find a sample of using WMSignerX to issue a bill:
//creating an object generating a digital signature
var Signer = Server.CreateObject("WMSignerX.Signer")
//creating a line that should be signed
var PlanStr = '' + OrderID.toString() + LoginOfCust + PurseOfStores + Amount.toString() + Desc + InvAddress.toString() + Period.toString() + Experation.toString() + RequestN
//Input of WM-ID and password
Signer.Login = LoginOfStores //web resource's WM-ID should be used in LoginOfStores
Signer.Passwd = "123456"
//Input of key file object
Signer.KeyFName = "d:\\beenz\\pins\\tackwm\\keys.kwm"
//generating a digital signature
var SignStr = Signer.SignString(PlanStr)
WMSigner will return a 132 (133)-character line (SignStr) that should be passed in the SS parameter.
Email your questions on WMSignerX to shop@wmtransfer.com.