Jump to content

Paypal module error


garret27

Recommended Posts

I am experiening a paypal error once I complete the order, meaning paypal sends me back to my website. When I look at the details in the failed order in the back office, it says:

 

L_ERRORCODE0 -> 10729

L_SHORTMESSAGE0 -> Shipping Address State Empty

L_LONGMESSAGE0 -> The field Shipping Address State is required

L_SEVERITYCODE0 -> Error

 

I've tried reinstalling the module. I have also read somewhere in this forum that my database isnt configured (or something) to recive the Shipping Address State. I am not sure if that is my problem. My paypal module is up-to-date, as well as my prestashop software on my website.

 

Please help

Link to comment
Share on other sites

Using 1.5.2.0

I get this error when a customer uses the Checkout With Paypal button. It doesn't transfer over the State or the Phone # field to Paypal.

If I go into the BO and manually add the state and a generic phone # for them, they can come back and continue and the order will go through.

Link to comment
Share on other sites

Here is the function that sends PayPal address to Presta. I think that problem may be caused becuase of that if part. Not sure if it triggers. Can anyone with more knowledge of this module check this please and report?

 

..\paypal\express_checkout\paypal_express_checkout.php

 

 

private function setShippingAddress(&$fields, $id_address)

{

$address = new Address($id_address);

 

$fields['ADDROVERRIDE'] = '1';

$fields['PAYMENTREQUEST_0_SHIPTOSTREET'] = $address->address1;

$fields['PAYMENTREQUEST_0_SHIPTOSTREET2'] = $address->address2;

$fields['PAYMENTREQUEST_0_SHIPTOCITY'] = $address->city;

 

if ($address->id_state)

{

$state = new State((int)$address->id_state);

$fields['PAYMENTREQUEST_0_SHIPTOSTATE'] = $state->iso_code;

}

 

$country = new Country((int)$address->id_country);

$fields['PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE'] = $country->iso_code;

$fields['PAYMENTREQUEST_0_SHIPTOZIP'] = $address->postcode;

}

  • Like 1
Link to comment
Share on other sites

Hi,

 

I have same issue and now is x-mas time... customers from some countries can't pay with paypal module, this is a KAOS.

 

On version 2.8.7, if no ID_STATE, the paypal module sent ID_COUNTRY.

$request .= '&SHIPTOSTATE='.($address->id_state ? $state->iso_code : $country->iso_code);

 

Maybe if we add similar function on the new version of Paypal, we can solve this problem. Like this:

 

if ($address->id_state)
{
$state = new State((int)$address->id_state);
$fields['PAYMENTREQUEST_0_SHIPTOSTATE'] = $state->iso_code;
} else {
$country = new Country((int)$address->id_country);
$fields['PAYMENTREQUEST_0_SHIPTOSTATE'] = $country->iso_code;
}

Edited by Dreamguard (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

I have tested the Firefox browser, you can pay the normal.

 

But IE browser does not pay, an error occurs.

 

20T20:09:57ZL_ERRORCODE0 -> 10729L_SHORTMESSAGE0 -> Shipping Address State EmptyL_LONGMESSAGE0 -> The field Shipping Address State is requiredL_SEVERITYCODE0 -> Error

 

Browser compatibility issues,Please help!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...