    WebMoney Click and Buy  PHP.


  - ,      ,
,  -   ,   -   .

    ,     ,  
   .

    ,     WebMoney,
  Click and Buy.

    PHP       ,
..    :

 *         WEBMONEY
   ( ).

 *  MD5-      (   ).

 *  desc     (  ), 
       .   
      ,    . 
       .

 *          ,
    https://merchant.webmoney.ru/  
  .


    pci_marker:

 #  
 # $url - url 
 # $purse -  webmoney 
 # $amount -   (    Click and Buy!)
 # $desc -   (  )

 $strhash=strtoupper($url.$purse.$amount.$desc.$mode);
 $md5p=md5("mypassword");
 #md5    ,     .
 $md5p=strtoupper($md5p);
 $strhash=md5($strhash);
 $strhash=strtoupper($md5p);
 $x1=$pci_wmtid.$WMID.$strhash.$pci_pursesrc.$pci_pursedest.$pci_amount.$pci_desc.$pci_datecrt.$mode;

 $mysign=md5($x1.$md5p);
 $mysign=strtoupper($mysign);
 $accept=0;

 if ($pci_marker==$mysign) { $accept=1; }


   :

 if ($pci_pursedest!="R510907660787") { $accept==0; }
 $p1=intval($pci_amount);
 $p2=intval($amount);
 if ($p1!=$p2) { $accept==0; }

 if (($accept==1) and ($pci_mode="test")) { $accept=2; }

 #$accept - 1 , 0 - , 2 - -


                                                    (c)2004, 1134.moveax.ru