So what is the fix to send opencart address to paypal?
We have two times send orders to the wrong shipping address now recently, because paypal and opencart address are different. And yes, we have to ship to paypal address, to not get into problems with Paypal.

kgkaraoke wrote:
The address entered in PayPal certainly DOES matter, because in order for PayPal Seller Protection to protect the merchant from claims of non-receipt of goods, the [package must be sent to the shipping address shown in PayPal, as evidenced by the tracking number. GEEZ! Where do you guys get your misinformation from?

The customer might want to ship an item to his mom. If you force the shipping address to be the paypal address on file, then that conflicts with the customer's expectation. Since paypal is the final step.. what do you do? overwrite his address on file?

Regardless, back when this post was made, the paypal module did pass the shipping address if supplied, otherwise it would use the payment address. You have a bad habit of reviving old threads and running your mouth on them without even being on current topic. Still the store owner would more than likely ship the item to his opencart shipping address entered, not to his paypal address.

In the rare case where you require the shipping address to be the paypal verified address, that would need special coding to alert the customer of that.

Now it does appear the paypal code was changed to only pass the billing address, which is incorrect and should be addressed.

nick5000 wrote:So what is the fix to send opencart address to paypal?
We have two times send orders to the wrong shipping address now recently, because paypal and opencart address are different. And yes, we have to ship to paypal address, to not get into problems with Paypal.

First start saying it correctly.
"How do we send the opencart SHIPPING address to paypal".. as the billing address IS already being sent.

The answer for 151+ is
1. EDIT: catalog/controller/payment/pp_standard.php

That will pass the opencart shipping address. But keep in mind this quick fix only works if shipping is always required. A more robust fix is needed for both ways.

Still you may run into issues.
Paypal offers an "address_override" flag that lets you prevent the customer from changing their address. But paypal's handling of address errors is shit and they throw a cryptic message that makes it sound like opencart sent bad parameters and offers no option of address correction. So that setting cannot be used reliably. That means the customer can still change his address when he gets to paypal if he wants.

So issues with addresses can still arise, and there is nothing we can do about it until paypal improves their standard system... and that hasn't changed in almost 10years

nick5000 wrote:So what is the fix to send opencart address to paypal?
We have two times send orders to the wrong shipping address now recently, because paypal and opencart address are different. And yes, we have to ship to paypal address, to not get into problems with Paypal.

First start saying it correctly.
"How do we send the opencart SHIPPING address to paypal".. as the billing address IS already being sent.

The answer for 151+ is
1. EDIT: catalog/controller/payment/pp_standard.php

That will pass the opencart shipping address. But keep in mind this quick fix only works if shipping is always required. A more robust fix is needed for both ways.

Still you may run into issues.
Paypal offers an "address_override" flag that lets you prevent the customer from changing their address. But paypal's handling of address errors is shit and they throw a cryptic message that makes it sound like opencart sent bad parameters and offers no option of address correction. So that setting cannot be used reliably. That means the customer can still change his address when he gets to paypal if he wants.

So issues with addresses can still arise, and there is nothing we can do about it until paypal improves their standard system... and that hasn't changed in almost 10years

Hello,

I'm using the Paypal Express, Can you share how to edit code for the same by passing shipping address to Paypal? I assume the file is pp_express.tpl, right?
Thanks.

nick5000 wrote:So what is the fix to send opencart address to paypal?
We have two times send orders to the wrong shipping address now recently, because paypal and opencart address are different. And yes, we have to ship to paypal address, to not get into problems with Paypal.

First start saying it correctly.
"How do we send the opencart SHIPPING address to paypal".. as the billing address IS already being sent.

The answer for 151+ is
1. EDIT: catalog/controller/payment/pp_standard.php

That will pass the opencart shipping address. But keep in mind this quick fix only works if shipping is always required. A more robust fix is needed for both ways.

Still you may run into issues.
Paypal offers an "address_override" flag that lets you prevent the customer from changing their address. But paypal's handling of address errors is shit and they throw a cryptic message that makes it sound like opencart sent bad parameters and offers no option of address correction. So that setting cannot be used reliably. That means the customer can still change his address when he gets to paypal if he wants.

So issues with addresses can still arise, and there is nothing we can do about it until paypal improves their standard system... and that hasn't changed in almost 10years

I know it is a bit old but this doesn't seem to work with 1.5.6. I tried the change and it doesn't pass the shipping address. Then when I tried for force paypal standard to not allow the address to be overridden it game me the paypal error of that the merchant has required the address to be sent and it was sent in a wrong format.

I would like to do this so the shipping address put into the cart is the same on they get shipped to since I only ship to validated addresses and don't want to have the possibility of two different addresses.

EDIT: Also if I click the "I don't have a paypal account" it then shows me the page to use a credit/debit card and there it only shows the first and last name - no address info so that is why the paypal error of not being in the right format.

As a quick check in pp_standard.tpl I replaced the php echo stuff and populated the following lines with an address.
<input type="hidden" name="address1" value="<?php echo $address1; ?>" />
<input type="hidden" name="address2" value="<?php echo $address2; ?>" />
<input type="hidden" name="city" value="<?php echo $city; ?>" />
<input type="hidden" name="zip" value="<?php echo $zip; ?>" />
<input type="hidden" name="country" value="<?php echo $country; ?>" />
The address I put in there shows up in paypal. SO this means to me that for some reason the $address1, 2, city, etc. are not be populated and blanks are being sent to paypal hence the reason for the paypal error.

Cue4cheap wrote:
I know it is a bit old but this doesn't seem to work with 1.5.6. I tried the change and it doesn't pass the shipping address.

This absolutely works with 1.5.6. The code doesn't lie. when you change the word "payment_" to "shipping_" then it will use those values. But again you'd need the address override flag added, but be wary of paypal's handling of odd addresses. I think they may have improved their error message now but YMMV.

I would like to do this so the shipping address put into the cart is the same on they get shipped to since I only ship to validated addresses and don't want to have the possibility of two different addresses.

EDIT: Also if I click the "I don't have a paypal account" it then shows me the page to use a credit/debit card and there it only shows the first and last name - no address info so that is why the paypal error of not being in the right format.

This may also be due to the address override. I mean the code shows that the values are being sent so if they aren't showing on the paypal side it is either due to some settings within your paypal account or some bug or intentional methods on their end.

I have noticed this as well with 2.0.1.1. We always ship to the shipping address provided in Opencart (since many people don't bother updating their Paypal address), but having the addresses visible in Paypal meant that we could double check on expensive orders that the customer was shipping it to a confirmed address. Paypal won't side with you on a chargeback unless you shipped to a confirmed address, so when an order comes in for more than $100, we usually like to verify it is a confirmed address. And if the order is for significantly more than that, we have other steps to follow.

But for some reason, after the upgrade to 2.0, Paypal now always says the same thing for all orders.

Cue4cheap wrote:
The address I put in there shows up in paypal. SO this means to me that for some reason the $address1, 2, city, etc. are not be populated and blanks are being sent to paypal hence the reason for the paypal error.

How about telephone numbers? There doesn't seem to be a line to pass phone number info to PayPal in the pp_standard.tpl file as well as catalog/controller/extension/payment/pp_standard.php As a result the phone number field is not populated either. Is there a fix to this?