Paypal Express Checkout - Shipping Address Issue
Zen cart: v1.3.9b
I currently have an issue with the Paypal Express Checkout Module on a certain website. Basically the issue occurs when a user checks out in the normal manner, ie:
- Shipping Address
- Billing Address
- Confirm Order
- Customer sent to Paypal for payment
However, it doesn't matter what shipping address is entered, it is always over-ridden by the address held in Paypal when the order is sent back to the zen cart system.
Is there some sort of flag which needs to be turned on in a payment module file to send the shipping address? Any help would be much appreciated
Re: Paypal Express Checkout - Shipping Address Issue
Have you tested this in v1.3.9h? There were numerous updates to all the PayPal code in v1.3.9c, d, e, f, g, and h.
Also, be sure to answer all the questions in the Posting Tips section of the screen which appears when you click Reply below.
Re: Paypal Express Checkout - Shipping Address Issue
Quote:
Originally Posted by
webhorizons
Zen cart: v1.3.9b
I currently have an issue with the Paypal Express Checkout Module on a certain website. Basically the issue occurs when a user checks out in the normal manner, ie:
- Shipping Address
- Billing Address
- Confirm Order
- Customer sent to Paypal for payment
However, it doesn't matter what shipping address is entered, it is always over-ridden by the address held in Paypal when the order is sent back to the zen cart system.
Is there some sort of flag which needs to be turned on in a payment module file to send the shipping address? Any help would be much appreciated
Apologies for raising this post up again, however I have searched the forum and I am unable to find an answer to this problem!
As explained by webhorizons zen cart is not sending the shipping address to Paypal. The billing address the customer enters in zen cart is instead taken as the delivery address on the Paypal page. However when the customer enters their credit card and address details on Paypal this over rides everything and is sent back to zen cart as the customers delivery address.
I am using version 1.3.9h - At first I thought it may have something tod with the address over ride setting however this is set to 1 (extract of paypalwpp log shown below):
PHP Code:
// If the customer has changed their shipping address,
// override the shipping address in PayPal with the shipping
// address that is selected in Zen Cart.
if ($order->delivery['street_address'] != $_SESSION['paypal_ec_payer_info']['ship_street_1'] && $_SESSION['paypal_ec_payer_info']['ship_street_1'] != '') {
$_GET['markflow'] = 2;
if (($address_arr = $this->getOverrideAddress()) !== false) {
// set the override var
$options[COLOR="Red"]['ADDROVERRIDE'] = 1;[/COLOR] // set the address info
$options['SHIPTONAME'] = $address_arr['entry_firstname'] . ' ' . $address_arr['entry_lastname'];
$options['SHIPTOSTREET'] = $address_arr['entry_street_address'];
if ($address_arr['entry_suburb'] != '') $options['SHIPTOSTREET2'] = $address_arr['entry_suburb'];
$options['SHIPTOCITY'] = $address_arr['entry_city'];
$options['SHIPTOZIP'] = $address_arr['entry_postcode'];
$options['SHIPTOSTATE'] = $address_arr['zone_code'];
$options['SHIPTOCOUNTRYCODE'] = $address_arr['countries_iso_code_2'];
Is there any other file/setting that I should be checking?
Thanks in advance
Re: Paypal Express Checkout - Shipping Address Issue
Does anyone have an answer to this problem?
Re: Paypal Express Checkout - Shipping Address Issue
It's working as designed. PayPal only accepts submission of one address. They treat that as the shipping address.
Re: Paypal Express Checkout - Shipping Address Issue
Quote:
Originally Posted by
DrByte
It's working as designed. PayPal only accepts submission of one address. They treat that as the shipping address.
Thanks DrByte but I am totally confused now. So are you telling me when the customer changes their delivery address in Zen cart they must do this again on the Paypal payment page?
Why does the code state it will over ride Paypal's shipping address?
[SCR] // If the customer has changed their shipping address,
// override the shipping address in PayPal with the shipping
// address that is selected in Zen Cart.
[/SCR]
Re: Paypal Express Checkout - Shipping Address Issue
Can anyone on here get zencarts delivery address to override paypals?
Re: Paypal Express Checkout - Shipping Address Issue
Hi rebelman did you have any luck with this?
Regarding a work around, there must be a way to keep the delivery address within zen cart separate (so it shows as the delivery address in emails and on the customers account) and change the code so it sends the billing address to PayPal.
I don't understand why the shipping address is sent and not the billing address! Surely it's Zen Cart that chooses which information is sent to PayPal
Re: Paypal Express Checkout - Shipping Address Issue
HI howb, still looking for a solution! I agree surely there is some workaround. I'm moving to another payment provider shortly but would still like to fix this.
Re: Paypal Express Checkout - Shipping Address Issue
Quote:
Originally Posted by
howb
I don't understand why the shipping address is sent and not the billing address! Surely it's Zen Cart that chooses which information is sent to PayPal
Yes. PayPal offers fields for submitting an address. They are:
SHIPTONAME
SHIPTOSTREET
SHIPTOSTREET2
SHIPTOCITY
SHIPTOZIP
SHIPTOSTATE
SHIPTOCOUNTRYCODE
Can you perhaps see from that WHY Zen Cart would be giving the SHIPPING address for the data submitted in those fields. After all, they're named SHIPTOxxxxxxx.
Presently PayPal specifically does NOT ACCEPT multiple addresses, and SPECIFICALLY does NOT ACCEPT *billing* address submission with orders, because PayPal does billing address handling on their side directly.
So, you can see why Zen Cart does what it does. It's following PayPal's rules.
If you want to have PayPal change how they work, please log a request for changed features with PayPal directly. We'd like them to expand and support submission of billing addresses, but thus far they haven't had enough demand from people like you for them to see how important it is.