With debugging turned on I get these error messages. I would appreciate any help to resolve this. FA 2.3.12
Undefined index: Address Line 1 in file: **path**/modules/import_paypal/import_paypal_update.php at line 303
Undefined index: Address Line 2/District/Neighbourhood in file: **path**/modules/import_paypal/import_paypal_update.php at line 304
Undefined index: Town/City in file: **path**/modules/import_paypal/import_paypal_update.php at line 305
Undefined index: State/Province/Region/County/Territory/Prefecture/Republic in file: **path**/modules/import_paypal/import_paypal_update.php at line 306
Undefined index: Zip/Postcode in file: **path**/modules/import_paypal/import_paypal_update.php at line 307
Undefined index: Postcode in file: **path**/modules/import_paypal/import_paypal_update.php at line 309
Undefined index: Country in file: **path**/modules/import_paypal/import_paypal_update.php at line 310
Undefined index: Item Title in file: **path**/modules/import_paypal/import_paypal_update.php at line 345
Undefined index: Item ID in file: **path**/modules/import_paypal/import_paypal_update.php at line 346
Undefined index: Item Title in file: **path**/modules/import_paypal/import_paypal_update.php at line 347
Undefined index: Insurance Amount in file: **path**/modules/import_paypal/import_paypal_update.php at line 352
Undefined variable: shipping in file: **path**/modules/import_paypal/import_paypal_update.php at line 373
Undefined variable: tax in file: **path**/modules/import_paypal/import_paypal_update.php at line 373
The lines 303 -310 in the import_paypal_update.php are as follows:
$address1 = $data["Address Line 1"];
$address2 = $data["Address Line 2/District/Neighbourhood"];
$address3 = $data["Town/City"];
$address4 = $data["State/Province/Region/County/Territory/Prefecture/Republic"];
$postcode = $data["Zip/Postcode"];
if (empty($postcode))
$postcode = $data["Postcode"];
$country = $data["Country"];
Lines 345 - 373 are as follows:
$memo = $data["Item Title"];
$item_code = $data["Item ID"];
$item_title = $data["Item Title"];
$currency = $data["Currency"];
$gross = str_replace(",","",$data["Gross"]);
$fee = str_replace(",","",$data["Fee"]);
$net = str_replace(",","",$data["Net"]);
$insurance = str_replace(",","",$data["Insurance Amount"]);
// shipping and tax have different headings in different paypal countries
if (array_key_exists("Shipping and Handling Amount", $data))
$shipping = str_replace(",","",$data["Shipping and Handling Amount"]);
elseif (array_key_exists("Postage and Packing Amount", $data))
$shipping = str_replace(",","",$data["Postage and Packing Amount"]);
elseif (array_key_exists("Postage and Packing", $data))
$shipping = str_replace(",","",$data["Postage and Packing"]);
if (array_key_exists("GST", $data))
$tax = str_replace(",","",$data["GST"]);
elseif (array_key_exists("VAT", $data))
$tax = str_replace(",","",$data["VAT"]);
elseif (array_key_exists("Sales Tax", $data))
$tax = str_replace(",","",$data["Sales Tax"]);
if ($use_paypal_trn_id) {
$ref = $data["Transaction ID"];
}
$type = strtoupper($data["Type"]);
log_message($type.", gross:".$gross.", fee:".$fee.", net:".$net.", shipping:".$shipping.", tax: ".$tax);