Webmoney. Issuing invoices

From ISPWiki

Jump to: navigation, search
  • To - your company name. You may use random symbols (maximum number is 255); spaces at the beginning and at the end are not allowed.
  • Date and time of the last purse verification - current date and time. "YYYYMMDD HH:MM:SS".
  • Certificate password - key password.
  • Catalogue with keys and certificate, such as /usr/local/ispmgr/etc/wm

The following files must be present in the catalogue

cert.cer - your purse certificate

cert.key - your purse key

wmcert - WM certificate

A WM Keeper Light (X.509) certificate is required

Once you received and installed the Light certificate, you should export it into the PKCS12 file with .pfx or .p12 extension. This file contains the private key and certificate.[1]

Then convert it into PEM to use CURL. To do that use the openssl utility:

 $ openssl pkcs12 -in 351237877840.pfx -out 351237877840.key -nocerts
 $ openssl pkcs12 -in 351237877840.pfx -out 351237877840.cer -clcerts -nokeys

Thus, we have the files .key and .cer, that will be used when sending requests to w3s.

Remember the password that you provided when converting the key into the PEM format.

  • Rename the file with the .key extension into cert.key
  • Rename the file with the .cer into cert.cer

Locate the files cert.key, cert.cer and wmcert into the directory specified in the settings. Be sure to specify the password in the settings.

Add the cron job:

 */2 * * * * /usr/local/ispmgr/sbin/wmbillpayment

You can track erros in the log /usr/local/ispmgr/var/wmbillpayment.log


  1. Web merchant interface
Was this helpful? Yes | No
Personal tools