Integration with Skrill (former MoneyBookers)

1.

Activate the "MoneyBookers integration plugin"

First you have to activate the "MoneyBookers integration plugin" inside the merchant panel of Post Affiliate Pro (Network) in the 'plugins' section. 

2.

Skrill (MoneyBookers) configuration

  1. Log into your Skrill (MoneyBookers) account
  2. Go to My Account> Merchant Tools and set a Secret Word

  3. Go back to the merchant panel of Post Affiliate Pro (network) to the 'plugins' section, click Configure next to the "MoneyBookers integration plugin" plugin and enter the Secret Word into the corresponding field. 

3.

Creating Buy buttons

Edit your Skrill (MoneyBookers) button by adding these lines to it:

<input type="hidden" name="status_url" value="http://URL_TO_PostAffiliatePro/plugins/MoneyBookers/moneybookers.php">
<input type="hidden" name="merchant_fields" value="field1">
<input type="hidden" name="field1" value="" id="pap_dx8vc2s5">

<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
</script>

In case your 'status_url' param is already used for something else, please do not change it and follow the step 5.

If you already use field1 too, set it to field2 (and so on...). In that case make sure your plugin (from step 2.) is configured to work with that field.

4.

An example button

After adding the extra code, you button code might look like this:

<form action="https://www.skrill.com/app/payment.pl" target="_blank">
<input type="hidden" name="pay_to_email" value="your_moneybookers@email.com">
<input type="hidden" name="return_url_target" value="1">
<input type="hidden" name="cancel_url_target" value="1">
<input type="hidden" name="confirmation_note" value="Confirmed!">
<input type="hidden" name="dynamic_descriptor" value="Descriptor">
<input type="hidden" name="language" value="EN">
<input type="hidden" name="title" value="Mr">
<input type="hidden" name="firstname" value="John">
<input type="hidden" name="lastname" value="Payer">
<input type="hidden" name="address" value="11 Payerstr St">
<input type="hidden" name="address2" value="Payertown">
<input type="hidden" name="phone_number" value="0207123456">
<input type="hidden" name="postal_code" value="EC45MQ">
<input type="hidden" name="city" value="Payertown">
<input type="hidden" name="state" value="Central London">
<input type="hidden" name="country" value="GBR">
<input type="hidden" name="amount" value="0.01">
<input type="hidden" name="currency" value="EUR">
<input type="hidden" name="amount2_description" value="Product Price:">
<input type="hidden" name="amount2" value="0.01"> 
<input type="hidden" name="amount3_description" value="Handling Fees:">
<input type="hidden" name="amount3" value="0.01">
<input type="hidden" name="amount4_description" value="VAT (20%):">
<input type="hidden" name="amount4" value="0.01">
<input type="hidden" name="detail1_description" value="Product ID:">
<input type="hidden" name="detail1_text" value="4509334">
<input type="hidden" name="detail2_description" value="Description:">
<input type="hidden" name="detail2_text" value="Romeo and Juliet (W. Shakespeare)">
<input type="hidden" name="detail3_description" value="Seller ID:">
<input type="hidden" name="detail3_text" value="123456">
<input type="hidden" name="detail4_description" value="Special Conditions:">
<input type="hidden" name="detail4_text" value="5-6 days for delivery">
<input type="hidden" name="rec_period" value="1">
<input type="hidden" name="rec_grace_period" value="1">
<input type="hidden" name="rec_cycle" value="day">
<input type="hidden" name="ondemand_max_currency" value="EUR">
<input type="submit" name="Pay" value="Pay">

<!-- Post Affiliate Pro integration snippet -->
<input type="hidden" name="status_url" value="http://URL_TO_PostAffiliatePro/plugins/MoneyBookers/moneybookers.php">
<input type="hidden" name="merchant_fields" value="field1">
<input type="hidden" name="field1" value="" id="pap_dx8vc2s5">
<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/notifysale.php" type="text/javascript">
</script>
<!-- /Post Affiliate Pro integration snippet -->

</form>

5.

When status URL param is used

In case your 'status_url' param is already used for something, you only have to set the merchant field. Do not change 'status_url'. Save your changes in the button, and then edit the script which is set in 'status_url' right now. At the beginning of the file, or processing function, place this code:

/* Post Affiliate Pro integration snippet */
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://URL_TO_PostAffiliatePro/plugins/MoneyBookers/moneybookers.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $_POST);
curl_exec($ch);
/* /Post Affiliate Pro integration snippet */

That's it. Save your work. You are now integrated.