View Full Version : script for moneybookers

07-23-2007, 11:14 AM
i am new in this field,
so i need ur guide.
i develop a system that integrate with payment gateway (moneybookers)
i successfully pass parameters from my site to moneybookers,
so customer already can select the moneybooker as the payment gateway and they will be send to moneybookers page.
the problem is, after they finish doing the payment, and moneybookers pass back to my site, i cannot catch the value and parameter that has been send to my site.
its blank!....
try all $_post and $_get
thanks for any help.

07-23-2007, 11:59 AM
what is it sending and what method does it use? what have you tried? Can we see some code?

07-23-2007, 12:36 PM
if you've tried looking at post and get, its possible that moneybookers isnt sending you anything back. Have you checked the documentation, perhaps you need to send it some additional parameters to get anything other than a redirect back

07-23-2007, 02:36 PM
here is how i pass the value to moneybookers, which is success....

$parse_out0.="<form action='https://www.moneybookers.com/app/payment.pl' method='POST' target='_blank'>\n";

$parse_out0.="<input type='hidden' name='pay_to_email' value='test1@domain.com'>\n";
$parse_out0.="<input type='hidden' name='transaction_id' value='".$sid."'>\n";
$parse_out0.="<input type='hidden' name='return_url' value='".$http_web."/moneybooker_success.php?id='".$sid."'>\n";
$parse_out0.="<input type='hidden' name='cancel_url' value='".$http_web."/step_one.php'>\n";
$parse_out0.="<input type='hidden' name='status_url' value='mailto:test1@domain.com'>\n";
$parse_out0.="<input type='hidden' name='language' value='EN'>\n";
$parse_out0.="<input type='hidden' name='merchant_fields' value='customer_id,session_id'>\n";
$parse_out0.="<input type='hidden' name='customer_id' value='".$uid."'>\n";
$parse_out0.="<input type='hidden' name='session_id' value='".$sid."'>\n";
$parse_out0.="<input type='hidden' name='pay_from_email' value='".$email."'>\n";
$parse_out0.="<input type='hidden' name='amount' value='".$total_due_today."'>\n";
$parse_out0.="<input type='hidden' name='currency' value='USD'>\n";
$parse_out0.="<input type='hidden' name='firstname' value='".$first_name."'>\n";
$parse_out0.="<input type='hidden' name='lastname' value='".$last_name."'>\n";
$parse_out0.="<input type='hidden' name='postal_code' value='".$zip_code."'>\n";
$parse_out0.="<input type='hidden' name='city' value='".$city."'>\n";
$parse_out0.="<input type='hidden' name='country' value='".$country."'>\n";
$parse_out0.="<input type='hidden' name='address' value='".$street_address_1.",".$street_address_2."'>\n";
$parse_out0.="<input type='hidden' name='detail1_description' value='Product Name :'>\n";
$parse_out0.="<input type='hidden' name='detail1_text' value='".$package_name." [".$domain_name."]'>\n";
$parse_out0.="<input type='hidden' name='rec_amount' value='".$total_reoccur."'>\n";
$parse_out0.="<input type='hidden' name='rec_end_date' value='".$next."'>\n";
$parse_out0.="<input type='hidden' name='rec_start_date' value='".$tarikh."'>\n";
$parse_out0.="<input type='hidden' name='rec_end_date' value='".$next."'>\n";
$parse_out0.="<input type='hidden' name='rec_period' value='".$day."'>\n";

then at moneybookers_success.php
$id = $_GET["id"];
echo $id;

it still blank ... and at the address bar, www.domain.com/moneybooker_success.php?id=
it didnt pas any value here...
mayb i do it wrongly somewhere.. but i didnt see where..
thanks for any help...
try to ask moneybookers support.. they keep asking me to read d manual since i dun understand much on thier documentation!.. so frustrated

07-24-2007, 03:34 AM
are they POST'ing the results ?

try <?print_r($_POST);print_r($_GET);?>

07-24-2007, 05:33 AM
thanks for ur reply
here is the result from <? print_r($_POST);print_r($_GET); ?>

Array ( ) Array ( )

what is that mean?
i am really are beginner.. so lot of things i dont know...

thanks for any help.

07-24-2007, 10:26 AM
$_POST and $_GET ar arrays so try

foreach($_POST as $result)

foreach($_GET as $result)

11-03-2007, 01:04 PM
Look at this. It will resolve all the issues with moneybooker.