close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PayPal Advanced passing shipping address but not ship to name

Thread began 6/27/2017 12:34 pm by TroyD | Last modified 6/27/2017 8:52 pm by Ray Borduin | 66 views | 6 replies |

TroyD

PayPal Advanced passing shipping address but not ship to name

I am starting a different thread here because this is a different issue in the same setup I posted earlier (found here http://www.webassist.com/forums/post/208901/)

This one has to do with shipping addresses. My client pointed out that when he logs into paypal.com the "Print Shipping Labels" button is missing for all transactions that were done using a credit card on the website. In other words, they don't log into PP, they just use their cc.

We have been back and forth with PayPal about this and once they even admitted that they were aware of the problem and they were fixing it. However, now they say I am not passing the information correctly. They won't tell me what or why, which is odd.

When I log into the manager.paypal.com account, I see both the billing and shipping addresses in the transaction details. However, I did notice that the customer's name is only showing up with the billing address. The shipping address is missing the person's name. The address is there, but no name. When reading the docs, it doesn't mention anything about this. It simply says...
"Note: If you pass in any of the ship-to address parameters such as SHIPTOCITY or SHIPTOSTATE, you must pass in the complete set (that is, SHIPTOSTREET, SHIPTOCITY, SHIPTOSTATE, SHIPTOCOUNTRY, and SHIPTOZIP)."

I do know that the name is being passed as FIRSTNAME and LASTNAME but I do not find anything like SHIPTOFIRSTNAME. Is this suppose to be there? Am I missing a variable?

It seems like I am missing something because I have both a billing and shipping form and the shipping form includes the field "First_Name_2" and "Last_Name_2". The billing form uses "First_Name" and "Last_Name".

All of the address information, SHIPTOSTREET, SHIPTOCITY, SHIPTOSTATE, SHIPTOCOUNTRY, and SHIPTOZIP, is included but I don't see anything for the ship to name. Where should I be looking?

Any thoughts?

Thanks,
TroyD

Sign in to reply to this post

Ray BorduinWebAssist

I would try adding SHIPTONAME with the other fields. I'd need a copy of the page to be precise about the code to add and where. I'd also push paypal to tell you exactly what is missing in case you are barking up the wrong tree here. If they say there is a problem with the syntax they should be able to tell you what the problem is.

Sign in to reply to this post

TroyD

Thanks Ray,

Yes, I wish they would tell me something but they keep going back and forth with it being on their end. That's where they are now, after posting this but the engineer that is working on it seems to know his stuff. And he says he has another merchant with the same issue.

Having said that, I want to be prepared in case they come back to me with the need for a ship to name.

Which page are you wanting to see? checkout.php, checkout_success.php, confirm.php, etc? I will attach which ever page you need to see.

Also, are you reading somewhere that SHIPTONAME is the variable? Maybe you have a better doc on the subject. The one I am reading is here #paypal-credit-card-transaction-request-parameters

In other sections where it has to do with other payment gateways such as SecureNet, it mentions BILLTOFIRSTNAME , BILLTOLASTNAME ,SHIPTOFIRSTNAME and SHIPTOLASTNAME. Nothing in the PayPal payments section. But then again, it makes no mention of FIRSTNAME which passes just fine to the billing information.

Thanks,
TroyD

Sign in to reply to this post

Ray BorduinWebAssist

No it does appear to be SHIPTOFIRSTNAME and SHIPTOLASTNAME. I was just guessing the name based on how paypal normally handles shipping but they are inconsistent across their different payment options.

Sign in to reply to this post

TroyD

Ray,

I think I see the problem. Or at least, it might be the problem. On the confirm.php page (see attachment), there isn't anything that provides the First_Name_2 and Last_Name_2 from the shipping form. This may not have anything to do with the print shipping labels issue but I need to at least provide it just in case. Can you look at what I plan to add and tell me if it looks correct to you?

In between these two lines;

$vars[] = "PHONENUM=" . "".(WA_getSavedFormValue('CheckoutWizard_Compact_Default','Phone_Number'))  ."";

$vars[] = "SHIPTOSTREET=" . "".(WA_getSavedFormValue('CheckoutWizard_Compact_Default','Address_1_2')) ."";



I will add code so it looks like this;

$vars[] = "PHONENUM=" . "".(WA_getSavedFormValue('CheckoutWizard_Compact_Default','Phone_Number'))  ."";
$vars[] = "SHIPTOFIRSTNAME=" . "".(WA_getSavedFormValue('CheckoutWizard_Compact_Default','First_Name_2')) ."";
$vars[] = "SHIPTOLASTNAME=" . "".(WA_getSavedFormValue('CheckoutWizard_Compact_Default','Last_Name_2')) ."";
$vars[] = "SHIPTOSTREET=" . "".(WA_getSavedFormValue('CheckoutWizard_Compact_Default','Address_1_2')) ."";



Does this look correct to you? If so, I will run another test.

Thanks,
TroyD

Attached Files
confirm_FOR_WA.php
Sign in to reply to this post

Ray BorduinWebAssist

Yes that appears correct.

Sign in to reply to this post

TroyD

Ok. That worked.
The ship to name is now being stored with the shipping address in the manager log in AND it's all being passed to paypal.com.
Where before, it would say "No shipping information available", it now shows all the correct details.
BUT, still no print shipping label button. So that might be due to the issue they said they were working on on their end.

Thanks
TroyD

Attached Files
confirm_FOR_WA.php
Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...