jmase Posted March 6, 2011 Share Posted March 6, 2011 Hello, just testing paypal module on my site. I added a test product and tried to check out using my personal account, but it returned this error:"PayPal does not allow your country of residence to deliver to the country you wish to"Now i have the same address on my site as my paypal account - I only allow delivery to the UK.I've also tried this with my friends Paypal account and he has the same error.Any idea how to fix this? Link to comment Share on other sites More sharing options...
RobinParker Posted April 5, 2011 Share Posted April 5, 2011 Hi,Have you managed to fix this yet? I'm getting exactly the same error with my Paypal account on my shop!Thanks,Robin Link to comment Share on other sites More sharing options...
RobinParker Posted April 5, 2011 Share Posted April 5, 2011 Ha ha I fixed it. Many thanks to Music Junkee on another thread who correctly said...The problem is that the Country Code list in Shipping > Countries lists the United Kingdom as ‘UK’ when it SHOULD actually be ‘GB’. When I edited this to ‘GB’ the payment went through with no errors at all.Once I edited the Country Code for United Kingdon to GB from the Shipping menu, PayPal works. I've successfully sold myself something :-)Hope this helps others in UK who are trying to get Prestashop up and running!Robin Link to comment Share on other sites More sharing options...
shokinro Posted April 5, 2011 Share Posted April 5, 2011 there is other cases will cause similar error.- if the country contains State, but your store does not configure state for that country- if customer registered address at PrestaShop is in different country of address in your Paypal- there might be some other casesThere is parameter "address_override" is passed to Paypal from PrestaShop Paypal moduleif you set this 0, it will fix most of the issuesHope this helps Link to comment Share on other sites More sharing options...
RobinParker Posted April 6, 2011 Share Posted April 6, 2011 That's a great tip. Many thanks, I will get that configured also! Link to comment Share on other sites More sharing options...
lukdesign Posted June 11, 2011 Share Posted June 11, 2011 HI,What is the file with parameter?Many THS. Link to comment Share on other sites More sharing options...
shokinro Posted June 11, 2011 Share Posted June 11, 2011 What is the file with parameter? it depends the version of Paypal module.in earlier version, it is in redirect.php file(PHP/tpl) are mized together.in newer version, it should be in redirect.tpl file. Link to comment Share on other sites More sharing options...
lukdesign Posted June 11, 2011 Share Posted June 11, 2011 Thanks shokinro for your Quick answer.Parameter is in redirect.tpl.If in PrestaShop the client has another adress than in PayPal still got the error "Paypal does not allow your country of residence to ship to the country you wish to".Another hint?THS in advance. Link to comment Share on other sites More sharing options...
shokinro Posted June 15, 2011 Share Posted June 15, 2011 If in PrestaShop the client has another adress than in PayPal still got the error “Paypal does not allow your country of residence to ship to the country you wish to”. I think Paypal does not allow shipping address/invoice is in the country other than the one registered.So even if you set "address_override" to 0, if the country is different than the country customer registered, this error will occur. Link to comment Share on other sites More sharing options...
akingston Posted April 4, 2012 Share Posted April 4, 2012 I was about to give up on this after seeing the same advice in so many posts but thankfully I eventually came across the following: (From http://customprestsh...country-of.html ) Right here is a solution that finally worked for me after reading lots of posts, this line was already set to overide address in the modules/paypal/standard/redirect.tpl line:36 <input type="hidden" name="address_override" value="0" /> However in the modules/paypal/payment/paypalpayment.php i noticed that Line: 105 was as follows $request .= '&ADDROVERRIDE=1'; so i changed it to $request .= '&ADDROVERRIDE=0'; Link to comment Share on other sites More sharing options...
akingston Posted April 4, 2012 Share Posted April 4, 2012 My apologies - I thought the above solution solved the problem but actually it just allowed me to go a step further in the process before giving me the error! Link to comment Share on other sites More sharing options...
Recommended Posts