Dimaer Posted May 20, 2012 Share Posted May 20, 2012 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. Link to comment Share on other sites More sharing options...
KraaZe Posted August 13, 2012 Share Posted August 13, 2012 Same here mate. Link to comment Share on other sites More sharing options...
4saleusa Posted August 20, 2012 Share Posted August 20, 2012 i got digital goods too and I removed all of them piece by piece, now same error, which country, unknown . anybody know which files to overwrite by filezilla to reinstate original files ? Link to comment Share on other sites More sharing options...
benjamin utterback Posted August 22, 2012 Share Posted August 22, 2012 Hello 4salesusa, What version of PrestaShop are you using? Also Which PayPal module are you currently using. Thank you for choosing PrestaShop! Regards, Benjamin Link to comment Share on other sites More sharing options...
carlosrgc Posted December 5, 2017 Share Posted December 5, 2017 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 Link to comment Share on other sites More sharing options...
carlosrgc Posted December 6, 2017 Share Posted December 6, 2017 (edited) 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 December 7, 2017 by carlosrgc (see edit history) Link to comment Share on other sites More sharing options...
selectshop.at Posted December 6, 2017 Share Posted December 6, 2017 If you comment the lines, so you cannot use Paypal. Paypal needs an address for to process the payment as well. Uncomment the lines, or don't use Paypal as payment option. You can use pay in store module for ex. https://addons.prestashop.com/en/search?id_category=0&search_query=pay+on+store Link to comment Share on other sites More sharing options...
carlosrgc Posted December 7, 2017 Share Posted December 7, 2017 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 Link to comment Share on other sites More sharing options...
selectshop.at Posted December 9, 2017 Share Posted December 9, 2017 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now