Last Name not showing up on paypal payments pro ship to address packing slip
I am having a issue where the customers last name is being sent to paypal payments pro but it is NOT showing up under the "ship to address" on the paypal slip. The problem is that the client cannot print out a shipping label and the confirmed address does not confirm either because the last name is missing.
1. Order is successful.
2. all information is transfered and first and last name show in history
3. it is just the last name that doesnt show in the ship to address section.
4. called paypal and added the "last name" from the checking form after the first name in the SH_name section around line 360? They are space with 1 space, as paypal asked.
code on confirm.php page
$PP_DirectPayment_optional[1][$nextIndex] = "".$wearyourin->GetCharges() - $wearyourin->GetDiscounts() ."";
$nextIndex = count($PP_DirectPayment_optional[0]);
$PP_DirectPayment_optional[0][$nextIndex] = "TaxTotal";
$PP_DirectPayment_optional[1][$nextIndex] = "".$wearyourin->GetTax() ."";
$nextIndex = count($PP_DirectPayment_optional[0]);
$PP_DirectPayment_optional[0][$nextIndex] = "SH_Name";
$PP_DirectPayment_optional[1][$nextIndex] = "".((isset($_POST["shipping_firstname"]))?$_POST["shipping_firstname"]:"") ." ".((isset($_POST["shipping_lastname"]))?$_POST["shipping_lastname"]:"") ."";
$nextIndex = count($PP_DirectPayment_optional[0]);
$PP_DirectPayment_optional[0][$nextIndex] = "SH_Street1";
$PP_DirectPayment_optional[1][$nextIndex] = "".((isset($_POST["shipping_street1"]))?$_POST["shipping_street1"]:"") ."";
$nextIndex = count($PP_DirectPayment_optional[0]);
$PP_DirectPayment_optional[0][$nextIndex] = "SH_Street2";
Did another test after this and it did not work.
Any ideas or suggestions?