PayPal - shipping address provided by the merchant is invalid
"Unable to process payment. Please contact the merchant as the shipping address provided by the merchant is invalid, and the merchant has requested that your order must be shipped to that address."
The issue was traced back to the PayPal payment module file located here:
The state was being passed as the whole state name instead of just the state abbreviation.
At around line 197 you will see the following:
"country" => ShopFunctions::getCountryByID ($address->virtuemart_country_id),
This function is designed to take a second parameter which specifies what field to return that by default is "state_name"
Change it to:
"country" => ShopFunctions::getCountryByID ($address->virtuemart_country_id, 'country_2_code'), Problem solved! Now PayPal will be able to validate the address.
- 0 Users Found This Useful
GJC added a nice segment of code in /administrator/components/com_virtuemart/model/product.phpAt...
After running a Joomla and VirtueMart update in place the admin menu dissappears, and this is a...
Recently updated a site to VirtueMart 3.0.18. Had SSL for sensitive areas turned on in the...
Open the file: components/com_virtuemart/views/user/tmpl/edit_shopper.phpor corresponding...
Calculation rules can be added using the instructional located here:...
Powered by WHMCompleteSolution