This is only for shipping rate lookup via PayPal, is that right? Or is it shipping rate lookup in eCart?
If it's on the eCart side, does the shipping estimate change on...what? Selection from a country drop-down?
...and then it all passes to PayPal...who then completely ignore it because the user already has a delivery address stored in their PayPal account, no?
If it's a shipping rate lookup via PayPal then, again, by your accounts it doesn't matter what the user enters because PayPal ignores it anyway and uses the delivery address stored in the users PayPal account.
Also, if I remove the section of code that you've highlighted - that uses the address sent back by PayPal to populate the eCart Store Summary to Database behaviour - will the delivery address that's entered on the website be what's displayed in PayPal? That certainly isn't the case at the moment and I fail to see how that will be resolved by changing what's returned by PayPal.
I'm not following this at all Jason. Can you clarify?
If PayPal doesn't accept the delivery address information from eCart, and it certainly doesn't display that information once you get to PayPal, then what is the point of it?
EDIT: PayPal Merchant Services have responded with this:
"It is possible and to pass address that your customer have entered in your shopping cart you have to pass ADDROVERRIDE variable as ADDROVERRIDE=1, which means that address passed from your shopping cart will override one that is set in buyers paypal account."
More from PayPal:
"This parameter field should be passed in SET Express Checkout API call as ADDROVERRIDE =1, when your customers inserts all required shipping address information in your shopping cart, it will be passed to PayPal.
If ADDROVERRIDE =0 the buyers shipping address will be used that is set in his PayPal account and address that set in shopping cart will be ignored."
Can you direct me to the section in eCart that I'll need to change and how I change it please?