• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 481
  • Last Modified:

Moneybookers auto topup issue

scenario: user has successfully sing up at moneybookers with pay-ondemand feature. and moneybookers has submited following parameters at our status monitoring script.

note= moneybookers has enabled reoccurring payments and pay-ondemand feature for this account
       = client has sufficient balance in his account

    [status] => 2
    [md5sig] => 12345678901234567890123456789012
    [pay_to_email] => merchant_account@host.com
    [topup_amount] => 10.00
    [mb_transaction_id] => 111111111
    [currency] => EUR
    [customer_id] => 22222222
    [payment_type] => WLT
    [mb_currency] => USD
    [plan] => myPackage 30
    [rec_payment_type] => recurring
    [merchant_id] => 33333333
    [rec_payment_id] => 555555555
    [mb_amount] => 41.28
    [amount] => 30.00
    [transaction_id] => 66666666
    [pay_from_email] => client_account@host.com


according to above info I have submitted following request to moneybookers but received PAYMEND DENIED error


https://www.moneybookers.com/app/ondemand_request.pl?action=prepare&email=merchand_account%40host.com&password=12345678901234567890123456789012&amount=10.00¤cy=EUR&rec_payment_id=555555555

any help

<?php

$mb_payment = array();

$mb_payment['email']          = 'merchant_account@host.com'; 
$mb_payment['password']       = MD5('mypass'); 

$mb_payment['amount']         = '10.00';
$mb_payment['currency']       = 'EUR';
$mb_payment['rec_payment_id'] = '555555555';
//$mb_payment['frn_trn_id']     = '66666666';  // I also have tried it


$url = 'https://www.moneybookers.com/app/ondemand_request.pl?action=prepare';
foreach ($mb_payment as $key => $value) {
    if ($value != '') {
        $url .= '&'.$key.'='.urlencode($value);
    }
}

$oCURL = curl_init($url);
curl_setopt($oCURL, CURLOPT_HEADER, 0);
curl_setopt($oCURL, CURLOPT_RETURNTRANSFER, 1); 
curl_setopt($oCURL, CURLOPT_COOKIEFILE, "/tmp/cookiefile");
curl_setopt($oCURL, CURLOPT_COOKIEJAR, "/tmp/cookiefile"); 
curl_setopt($oCURL, CURLOPT_HTTPGET, true);

$strResponse = curl_exec($oCURL); 
curl_close($oCURL);

print_r($strResponse);
echo "<br />\n";
?>

Open in new window

0
nasirbest
Asked:
nasirbest
1 Solution
 
nasirbestAuthor Commented:
I have solved it by myself.

in moneybookers -> profile -> merchant tools

change ip restrictions to some static ip address instead of 0.0.0.0
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now