Jump to content

Paypal Payment error email


Recommended Posts

Hi All

My prestashop sent me the following email. Is this an error with the paypal module

Any ideas please???

Regards

Pinkloveshy


Hi,

Error reporting from your PayPalAPI module

A client has encountered a problem with the module PayPalAPI, see the report:

PayPal response:
TIMESTAMP -> 2011-05-09T19:30:30Z
L_ERRORCODE0 -> 10729
L_SHORTMESSAGE0 -> Shipping Address State Empty
L_LONGMESSAGE0 -> The field Shipping Address State is required
L_SEVERITYCODE0 -> Error

Shorts4u.com powered with PrestaShop™

Link to comment
Share on other sites

I think it is an error that obviousely tells you that there is no state in the shipping address customer provider.

I think the customer comes from a country that contain state, but you store has not configured the conuntry with containing state.

Link to comment
Share on other sites

  • 3 weeks later...

I'm using PrestaShop 1.4.1.0 with PayPal module v2.4 only since yesterday. I have had a few succesful sales made via Paypal, but tonight I also received the error from the Paypal module:

A client has encountered a problem with the module PayPalAPI, see the report:

PayPal response:
TIMESTAMP -> 2011-05-27T17:46:45Z
L_ERRORCODE0 -> 10729
L_SHORTMESSAGE0 -> Shipping Address State Empty
L_LONGMESSAGE0 -> The field Shipping Address State is required
L_SEVERITYCODE0 -> Error



It is a bit hard to troubleshoot though. Of course it is the API complaining that the State had to be filled out, but without any reference to the cart, I don't know which country the cart was for.

I also cannot locate any details on which countries require States to be filled out for the Paypal API to work.

Link to comment
Share on other sites

You can check related order and shipping address to see if the country requires state.
I am sure the address is in a country the Paypal requires state but you have not set it at your store.

Actually, if you are using my Agile Paypal Express Checkout module, the module will automatically fix the missing state issue by adding it to database. So that you never see this errors. If you are interested, you can tale a look at following thread

http://www.prestashop.com/forums/viewthread/77195/

Link to comment
Share on other sites

Thanks for your thoughts shokinro.

I would be very happy to check the order if there were any. Since payment fails due to the error I mentioned, no order is registered so I can't find it out that way.

After investigating further on the Paypal developer forums the most common suggestion is to repeat the country ISO code in the field reserved for the State if no State is available. So I adjusted the function makePayPalAPIValidation in paypal.php:
In the "// Getting address" section:

if (isset($address->id_state) AND $address->id_state) $state = new State((int)($address->id_state));
     else $state = new Country((int)($address->id_country));



Thanks for suggestion an alternative Paypal module although at the moment the Paypal module that comes with PS 1.4.1 seems to be very viable as well. I am using Express Checkout and it is quite possible that a customer perhaps didn't enter his/her State when filling out the credit card details at the Paypal prompt since no Paypal account is required. Though I would assume Paypal would just ask the visitor to enter the missing details and not abort the call alltogether.

Link to comment
Share on other sites

same issue, many buyers didn’t enter his/her State when checkout, there are hundreds of countries if all countries need states information by Paypal then that is a touch job to list all states in the shipping->states.
i have disabled the Paypal 2.4 API in order to let customer place order. i also have other shopping cart that using same paypal so i can't use IPN in paypal.
it is a headache, hope the new version will sort this problem out.



Hi,

Error reporting from your PayPalAPI module

A client has encountered a problem with the module PayPalAPI, see the report:

Making new connection to 'api-3t.paypal.com/nvp'
Connect with CURL method successful
Sending this params:
METHOD=DoExpressCheckoutPayment&VERSION=60.0&PWD;=******************&TOKEN=EC-54E117....ERID=WGBXYF4LGF468&PAYMENTACTION=Sale&AMT=29.99&CURRENCYCODE=USD&IPADDRESS=digitalschina.com&NOTIFYURL=http://www.digitalschina.com.../ipn.php&BUTTONSOURCE=PRESTASHOP_ECM&SHIPTONAME;=+Danilo+Henriquez&SHIPTOSTREET=2451+E+TREMONT+AVE+&SHIPTOCITY=Bronx+NY&SHIPTOSTATE;=&SHIPTOCOUNTRYCODE=US&SHIPTOZIP=10461
Send with CURL method successful
PayPal response:
TIMESTAMP -> 2011-05-28T15:38:55Z
CORRELATIONID -> ff611794e81e5
ACK -> Failure
VERSION -> 60.0
BUILD -> 1913139
L_ERRORCODE0 -> 10729
L_SHORTMESSAGE0 -> Shipping Address State Empty
L_LONGMESSAGE0 -> The field Shipping Address State is required
L_SEVERITYCODE0 -> Error

Link to comment
Share on other sites

  • 2 weeks later...

I am getting the same thing. I get there's an error with the API. However, why am I receiving this message in English, French, Spanish, and Greek?

That doesn't make sense to me. My site clearly states that I don't do overseas sales, so why would people go through with this? This seems like some kind of Internet bot is doing this...

Link to comment
Share on other sites

  • 2 weeks later...
Thanks for your thoughts shokinro.

I would be very happy to check the order if there were any. Since payment fails due to the error I mentioned, no order is registered so I can't find it out that way.

After investigating further on the Paypal developer forums the most common suggestion is to repeat the country ISO code in the field reserved for the State if no State is available. So I adjusted the function makePayPalAPIValidation in paypal.php:
In the "// Getting address" section:

if (isset($address->id_state) AND $address->id_state) $state = new State((int)($address->id_state));
     else $state = new Country((int)($address->id_country));



Thanks for suggestion an alternative Paypal module although at the moment the Paypal module that comes with PS 1.4.1 seems to be very viable as well. I am using Express Checkout and it is quite possible that a customer perhaps didn't enter his/her State when filling out the credit card details at the Paypal prompt since no Paypal account is required. Though I would assume Paypal would just ask the visitor to enter the missing details and not abort the call alltogether.



This seems like a great fix for this issue! However I have no idea where to put the line of code exactly. Tried it at 2 places and both time it gave me a parse error in the modules tab. Can you please tell me where to put the line exactly so I don't encounter this paypal error anymore...? Thanks!
Link to comment
Share on other sites

  • 1 year later...

I am stuck at this point as well. all of my paypal orders were declined due to no state. I attempted to checkout myself and got the same error.

PayPal response:

TIMESTAMP -> 2012-10-22T23:00:55Z

L_ERRORCODE0 -> 10729

L_SHORTMESSAGE0 -> Shipping Address State Empty

L_LONGMESSAGE0 -> The field Shipping Address State is required

L_SEVERITYCODE0 -> Error

Link to comment
Share on other sites

If memory serves, you may be able to get more info by logging in to paypal and digging around for some response/log/api something area to see the entire failed post response. This might let you track down who and where it was from to see where paypal wants you to have a state and PS isnt putting in a state entry box for. I would think most everywhere would have some sort of state/province/region/something to limit the whole country area..

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 1 month later...

A temporary fix so you don't get this error and orders will go through properly is to go to the back office, modules,paypal module:

Check "no" for:

Express Checkout shortcut

Offer your customers a 3-click checkout experience

 

This will get rid of all the Checkout with Paypal buttons on all the product pages and you shouldn't get the error anymore.

Not really a fix but more of a workaround until the issue is fixed.

Link to comment
Share on other sites

  • 1 year later...

I am using prestashop 1.5.4.1 and paypal module 3.5.0.


I have tried to buy a test product with express checkout but I got this error:


Please try to contact the merchant:


  1. PayPal response:
  2. TIMESTAMP -> 2014-05-21T15:45:53Z
  3. L_ERRORCODE0 -> 10729
  4. L_SHORTMESSAGE0 -> Shipping Address State Empty
  5. L_LONGMESSAGE0 -> The field Shipping Address State is required
  6. L_SEVERITYCODE0 -> Error

 


http://www.kado2iran.com


If you search test, a test product is there with price of 0.1 CAD.


I really appreciate if you could do a test and help me to solve this problem.


 


Thank you very much in advance.


Link to comment
Share on other sites

  • 3 months later...
  • 4 weeks later...
×
×
  • Create New...