VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: milemaker on October 24, 2011, 11:26:40 AM

Title: Paypal does not allow your country of residence to ship to the country you wish
Post by: milemaker on October 24, 2011, 11:26:40 AM
paypal wont accept credit card payments from shoppers overseas. (if billing and shipping addresses are different that is.)

paypal's message: "Paypal does not allow your country of residence to ship to the country you wish to. At this time, we are unable to process your request. Please return to.."

seems like there was solution for VM 1.1.x: http://forum.virtuemart.net/index.php?topic=69991.msg232724#msg232724 but i can't find similar settings in VM 1.9.8.

any help is greatly appreciated.

Joomla 1.7 / VM 1.9.8j





Title: Re: Paypal does not allow your country of residence to ship to the country you wish
Post by: alatak on October 24, 2011, 13:43:48 PM
Hi,

txs a lot for pointing out the solution.
Title: Re: Paypal does not allow your country of residence to ship to the country you wish
Post by: alatak on October 24, 2011, 14:19:35 PM

Hi,

Actually i found a stupid error while sending the country code to Paypal.



Title: Re: Paypal does not allow your country of residence to ship to the country you wish
Post by: milemaker on October 28, 2011, 07:45:20 AM
ok, great.

will it be next sub release when the bug fix is made public or is there another way to apply the fix to current site?

thanks.
Title: Re: Paypal does not allow your country of residence to ship to the country you wish
Post by: alatak on October 28, 2011, 08:36:05 AM
Hi,

Yes it will be in the next release.

But if you can check that my fix is correct that will be great:
in file plugins/vmpayment/paypal.php

you had that code (around line 230)
    "country" => ShopFunctions::getCountryByID($usrST['virtuemart_country_id'], 'country_3_code'),


replace it by

    "country" => ShopFunctions::getCountryByID($usrBT['virtuemart_country_id'], 'country_3_code'),


the problem was on $usrST that should be replaced by $usrBT

Please give me feed back :)
Title: Re: Paypal does not allow your country of residence to ship to the country you wish
Post by: milemaker on October 30, 2011, 22:29:29 PM
thanks a lot alatak.

i will let you know as soon as i will get someone available to make purchase from overseas.

cheers.

Title: Re: Paypal does not allow your country of residence to ship to the country you wish
Post by: chancehoggan on December 17, 2011, 23:51:48 PM
This problem still exists with this change.
Title: Re: Paypal does not allow your country of residence to ship to the country you wish
Post by: chancehoggan on December 18, 2011, 00:09:39 AM
Any new information on this error?
Title: Re: Paypal does not allow your country of residence to ship to the country you wish
Post by: chancehoggan on December 18, 2011, 00:21:48 AM
I notice this line:

"address_override" => "1", // 0 ??   Paypal does not allow your country of residence to ship to the country you wish to

Should this be set to 0?
Title: Re: Paypal does not allow your country of residence to ship to the country you wish
Post by: chancehoggan on December 18, 2011, 05:08:09 AM
To Update this thread:

It looks like if you encounter this error and the above fix by alatak is present you can try setting "address_override" => "1", to "address_override" => "0",

I made this change and orders that had this error are now processing. 
Title: Re: Paypal does not allow your country of residence to ship to the country you wish
Post by: alatak on December 18, 2011, 11:46:26 AM
Hi,
In the RC3 versionI do not send this paramter anymore. Paypal takes the default value=0.
It should work without doing any fix.
Title: Re: Paypal does not allow your country of residence to ship to the country you wish
Post by: baljitkarwal on March 13, 2012, 01:49:18 AM
Hi,

Can anyone help me to find the file where i need to do these changes? "address_override" => "1", to "address_override" => "0"

Thanks
Baljit
Title: Re: Paypal does not allow your country of residence to ship to the country you wish
Post by: alatak on March 13, 2012, 08:45:20 AM
Hi,

In Paypal configuration, you have 2 parameters:
Let buyers override their PayPal addresses?   : it corresponds to the Paypal parameter "address_override"

Prompt buyers for a shipping address: corresponds to "no_shipping"

You don't need to change the code :)
Title: Re: Paypal does not allow your country of residence to ship to the country you wish
Post by: baljitkarwal on March 15, 2012, 21:34:27 PM
Thanks Alatak...thanks a lot...you saved my time.. i found it in my paypal code written under configuration..