Jump to content

Paypal API Error L_ERRORCODE0 -> 10730


Dimaer
 Share

Recommended Posts

Hi guys,

We are working with digital goods and removed postal code as required field in our registration as it is not needed and we believe Prestashop is not handling it well for International postal codes.

 

Now we are getting Paypal API error when the customer leaves a post code field blank:

 

Please refer to logs:

  • PayPal response:
  • TIMESTAMP -> 2012-05-20T10:40:56Z
  • L_ERRORCODE0 -> 10730
  • L_SHORTMESSAGE0 -> Shipping Address Postal Code Empty
  • L_LONGMESSAGE0 -> The field Shipping Address Postal Code is required
  • L_SEVERITYCODE0 -> Error

 

Any way to fix it in module or it is solely on Paypal side?

Thanks.

Share this post


Link to post
Share on other sites

  • 2 months later...
  • 5 years later...

Hello  I am  having the same issue. Any idea?

PayPal v3.11.4 - by PrestaShop

PrestaShop 1.6.1.13

Theme default-bootstrap


    <b>PayPal response:</b>
    TIMESTAMP -> 2017-12-05T18:11:51Z
    L_ERRORCODE0 -> 10730
    L_SHORTMESSAGE0 -> Shipping Address Postal Code Empty
    L_LONGMESSAGE0 -> The field Shipping Address Postal Code is required
    L_SEVERITYCODE0 -> Error

 

Share this post


Link to post
Share on other sites

Well  I will  replay myself . As in my site  users   do not need nothing else  than their  names  and  email  , I have  just commented  the   lines 294-305 in the file  process.php  (paypal module.). Even forcing         $fields['NOSHIPPING'] = '1'; as  paypal api  documentation  recommends for this cases (for example  virtual  goods) the  problems may  persists because  if  any address related field is passed  to  paypal  then  NOSHIPPING=1 will be ignored

 // $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'] = '41009'; */

Edited by carlosrgc (see edit history)

Share this post


Link to post
Share on other sites

Well  in fact  "the address" is not a must. In the API documentation there is  even  a parameter to inform  paypay   that the  address is  not required.I have  been  doing some  tests  with  paypal  with  those lines commented and below are  the  parameters  passed to.  I am able to  buy using paypal and in both cases (prestashop and  paypal) the   delivery  address only show name, surname and  email address of the client

The  following parameters noshipping  and addroverride  should be  configured  properly  for example when  you  sell virtual good. In these cases   delivery  address has no sense

SetExpressCheckoutRequest
returnurl "http://xxxxxxxx/modules/paypal/express_checkout/payment.php"
cancelurl "http://xxxxxxxx/pedido-rapido?paypal_ec_canceled=1&rand=1512551675509"
noshipping "1"
addroverride "0"
solutiontype "Sole" landingpage
    
"Login" method
    
"SetExpressCheckout"
version "106"
buttonsource "PRESTASHOP_EC"
paymentrequest_0_currencycode  "EUR"
paymentrequest_0_amt  "1"
paymentrequest_0_itemamt "1"
paymentrequest_0_paymentaction "Sale"
paymentrequest_0_shiptoname "Webmaster webmaster"
paymentrequest_0_name "xxxxx" "xxxxxxxxxxx"
paymentrequest_0_number "8" "29"
paymentrequest_0_qty "1" "1"
paymentrequest_0_desc "CAJA DE 50 UNIDADES. (CATEGORIA I)EFECTO: TRUENO D..."

Regards

 

Share this post


Link to post
Share on other sites

Virtual goods payment should work as by default with paypal. There is no need to adapt anything in the code. Perhaps Express checkout is not allowed for your country. This is a Paypal problem. Use paypal instead of express checkout, or simply set another country on your paypal module configuration. You can use US, for this EC was implemented on paypal.

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More