I can't seem to get the subject variable to print out. I assign "settle_amount" to a local variable but it never prints out. I don't have problems with any other variables. Am I using a reserved word or what? At first guess, it would seem to be a typo but I've reenter the lines several times. Any ideas?
----------
# assign posted variables to local variables
# note: additional IPN variables also available -- see IPN documentation
$fname = $variable{'first_name'};
$lname = $variable{'last_name'};
$addstat = $variable{'address_status'};
$item_name = $variable{'item_name'};
$receiver_email = $variable{'receiver_email'};
$payer_email = $variable{'payer_email'};
$payer_id = $variable{'payer_id'};
$payer_status = $variable{'payer_status'};
$item_number = $variable{'item_number'};
$invoice = $variable{'invoice'};
$trans = $variable{'txn_id'};
$payment_status = $variable{'payment_status'};
$reason = $variable{'pending_reason'};
$payment_gross = $variable{'mc_gross'};
$fee = $variable{'mc_fee'};
$net = $variable{'settle_amount'};
$adate = $variable{'payment_date'};
$payment_type = $variable{'payment_type'};
$notify_version = $variable{'notify_version'};
open(MAIL,"|$mailprog -t");
print MAIL "To: $sendto\n";
print MAIL "CC: $sendtobcc\n";
print MAIL "From: $sendfrom\n";
print MAIL "Subject: PayPal Error\n\n" ;
print MAIL " Payment Status: $payment_status\n";
print MAIL " Status Reason: $reason\n";
print MAIL " Process Date: $adate\n";
print MAIL " Transaction ID: $trans\n";
print MAIL " Item Name: $item_name.\n";
print MAIL " Payment Amt: $payment_gross.\n";
print MAIL " Processing Fee: $fee.\n";
print MAIL " Net Deposited: $net.\n";
print MAIL "Customer (last/first): $lname, $fname.\n";
print MAIL " Customer Email: $payer_email\n";
print MAIL " Address Status: $addstat\n";
print MAIL " Payer ID: $payer_id\n";
print MAIL " Payer Status: $payer_status\n";
print MAIL " Payment Type: $payment_type\n";
print MAIL " Notify Version: $notify_version\n";
print MAIL " Res: $res\n";
close (MAIL);

settle_amount variable
Started by
Guest(old)
, Dec 16 2002 03:45 PM
2 replies to this topic
#2
Posted 16 December 2002 - 04:02 PM
The 'settle_amount' variable is either being added or changed as part of upcoming enhancements to the IPN code related to the Multiple Currencies feature. It may not be active yet.
Checking on this variable.
Stephen Ivaskevicius
PayPal/eBay, Inc.
www.paypal.com/pdn
Checking on this variable.
Stephen Ivaskevicius
PayPal/eBay, Inc.
www.paypal.com/pdn
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users