Integration of WebMoney Merchant Service with Post Affiliate Pro.

1.

Activate and Configure of WebMoney plugin in Post Affiliate Pro

  1. Activate WebMoney plugin in Merchant Panel -> Plugins
  2. If you use WebMoney Secret Key for security(recommended), set your Secret Key in Merchant Panel -> Plugins -> Configure WebMoney plugin.

2.

Configure WebMoney Merchant

  1. Go to WebMoney Merchant -> Settings -> Web Merchant Interface choose your purse from Purse List and click change.
  2. In Merchant Purse Settings set secret key(recommended) and check the checkbox.(Do not forget to set same secret key in PAP WebMoney plugin configuration!)
  3. Set Result URL to: http://URL_TO_PostAffiliatePro/plugins/WebMoney/webmoney_result.php
  4. Set Success URL to: http://URL_TO_PostAffiliatePro/plugins/WebMoney/webmoney_success.php
  5. Set Method of requesting Fail URL to: POST
  6. Set Fail URL to: http://URL_TO_PostAffiliatePro/plugins/WebMoney/webmoney_failed.php
  7. Set Method of requesting Fail URL to: POST
  8. Set Signature algorithm to: MD5

3.

Add code to every WebMoney button form

Now add the following code into EVERY WebMoney button form


<input type="hidden" name="PAP_COOKIE" value="" id="pap_9ns6b41z">   
<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
</script>

4.

Example

Example of uploaded WebMoney Form:

<!-- Begin WebMoney Button -->  
<form method="POST" action="https://merchant.wmtransfer.com/lmi/payment.asp">
...  
	<input type="hidden" name="LMI_PAYMENT_AMOUNT" value="12.08">
	<input type="hidden" name="LMI_PAYMENT_DESC" value="payment under the bill">
	<input type="hidden" name="LMI_PAYMENT_NO" value="1234">
	<input type="hidden" name="LMI_PAYEE_PURSE" value="Z145179295679">
...
	<input type="hidden" name="LMI_SIM_MODE" value="0">
	<input type="hidden" name="PAP_COOKIE" value="" id="pap_9ns6b41z">
	<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript"></script>
	<script type="text/javascript">
		PostAffTracker.writeCookieToCustomField('pap_9ns6b41z');
	</script>  
...  
</form>
<!-- End WebMoney Button -->