Jump to content


Photo

settle_amount variable


  • This topic is locked This topic is locked
2 replies to this topic

#1 Guest(old)

Guest(old)

    Junior Member

  • Members
  • 312 posts

Posted 16 December 2002 - 03:45 PM

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);

#2 PayPalStephen

PayPalStephen

    Advanced Member

  • Members
  • 2,138 posts

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

#3 PayPalStephen

PayPalStephen

    Advanced Member

  • Members
  • 2,138 posts

Posted 17 December 2002 - 08:26 AM

The 'settle_amount' is included when the payment is converted from one currency to another.



Stephen Ivaskevicius
PayPal/eBay, Inc.
www.paypal.com/pdn




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users