Shipping address undefined

Phoca Cart - complex e-commerce extension
MumAndCo
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 11 Nov 2020, 18:46

Shipping address undefined

Post by MumAndCo »

I'm losing the will to live with this issue now, and apparently its happening across a lot of platforms but can't seem to find info on this issue being fixed in phoca cart

Whenever I try to checkout (both live and sandbox) it'll accept all the details, but when it redirects to paypal it gives the following error:


There's a problem with your shipping address.
Please return to the merchant and update your information, including your town/city and postcode.

John Doe
1Street Name
Middleofnowhere undefined B11 6BB

I did think at first it was possibly the address_2 form field but it appears that it really doesn't want to accept the region. I downloaded them from Phoca rather than manual inputting them.

currently using Joomla 3.9.22 and Phoca 3.5.4 - PHP version 7.4.12
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Shipping address undefined

Post by Jan »

Hi, what is the version of PayPal plugin?

- Enable logging in Phoca Cart and let me know the logging items (when you test to make an order with PayPal - there should be new logging items)

- Does anything change, when you enable/disable the parameter: Address Override:

Image

Jan
If you find Phoca extensions useful, please support the project
MumAndCo
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 11 Nov 2020, 18:46

Re: Shipping address undefined

Post by MumAndCo »

Hi, and thank you for the reply - I believe the version is 3.1.7 (It was already bundled in the component package)

heres the log contents:
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" name="phCartPayment" id="phCartPayment" method="post">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="business" value="johndoe@mumandcosoaps.co.uk" />
<input type="hidden" name="item_name" value="Order: MACS202000000012WO" />
<input type="hidden" name="item_name_1" value="Washed Up Soap Bar" />
<input type="hidden" name="item_number_1" value="MWU201108" />
<input type="hidden" name="amount_1" value="3.5" />
<input type="hidden" name="quantity_1" value="1" />
<input type="hidden" name="weight_1" value="160.0000" />
<input type="hidden" name="item_name_2" value="Royal Mail First Class - Shipping Price" />
<input type="hidden" name="amount_2" value="3.7" />
<input type="hidden" name="quantity_2" value="1" />
<input type="hidden" name="currency_code" value="GBP" />
<input type="hidden" name="first_name" value="John" />
<input type="hidden" name="last_name" value="Doe" />
<input type="hidden" name="address1" value="! paypal lane" />
<input type="hidden" name="address2" value=" " />
<input type="hidden" name="city" value="Birmingham" />
<input type="hidden" name="region" value="3582" />
<input type="hidden" name="zip" value="B11 1AA" />
<input type="hidden" name="country" value="United Kingdom" />
<input type="hidden" name="email" value="johndoe@mumandcosoaps.co.uk" />
<input type="hidden" name="address_override" value="1" />
<input type="hidden" name="invoice" value="MACS202000000012WI" />
<input type="hidden" name="charset" value="UTF-8" />
<input type="hidden" name="rm" value="2" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="bn" value="PhocaCart_Cart_PPS" />
<input type="hidden" name="custom" value="12" />
<input type="hidden" name="return" value="https://mumandcosoaps.co.uk/index.php?o ... entrecieve" />
<input type="hidden" name="notify_url" value="https://mumandcosoaps.co.uk/index.php?o ... =component" />
<input type="hidden" name="cancel_return" value="https://mumandcosoaps.co.uk/index.php?o ... dard&mid=1" />
<div class="ph-center">
<div>Your order has been successfully processed, thank you.</div>
<div>You are now being redirected to PayPal</div>
<div class="ph-loader"></div>
<div>If you are not redirected within a few seconds, please
<input type="submit" class="btn btn-primary" value="Click here to be redirected to Paypal" class="button" />
</div>
</div>
</form>, User: John Doe

If I turn off the address override, the payment goes through fine, and shows in the order section as pending - but we want them to be able to override the address should the item be purchased as a gift so it can be sent straight to the recipient rather than the buyer
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9447
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Shipping address undefined

Post by Benno »

Hi,
I believe the version is 3.1.7 (It was already bundled in the component package)
Current Phoca Cart Payment - Paypal Standard Plugin version is v3.5.4

Kind regards,
Benno
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Shipping address undefined

Post by Jan »

Do you get the same problem with latest version?
If you find Phoca extensions useful, please support the project
Post Reply