PayPal Pro API version possibly causing 10540 err

  • Posts: 35
  • Thank you received: 0
8 years 9 months ago #230257

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.5.30
-- Error-message(debug-mod must be tuned on) -- : Error 10540: The transaction cannot be processed due to an invalid address

Hello,
We are getting lots of rejected PayPal Pro transactions with "Error 10540: The transaction cannot be processed due to an invalid address." and having contacted PayPal about this they are not sure what the problem is but they say we are running a really old version of the API (51) and we need to try 200. Looking at their changelog, 51 is so old it isn't even on it anymore and it goes back to 2012, so maybe they have a point.
So, how can we change the version to 200?

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
8 years 9 months ago #230353

Hello,
After checking that link : developer.paypal.com/docs/classic/api/NVPAPIOverview/
I think that you should edit the "paypalpro.php" file of the PayPal Pro plugin and change that line :

	'VERSION' => '51.0',
By :
	'VERSION' => '200',
and test it again.

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 0
8 years 9 months ago #230386

Hello,

We changed the line to '200' and got a different error message:

Error 10006: Version is not supported. See attached screenshot.

We also noted on the PayPal site, we could set the version to '201' or '202' etc. We tried this but it did not work either.

Do you have any further suggestions?

Thanks

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 9 months ago #230392

Hi,

Well, they told you to put 200 and they payment gateway now says that 200 is not supported...
Are you sure they know what they're saying ?
Besides, I don't see why changing the version number would help.
There are plenty of other merchants using HikaShop and PayPal Pro with the version 51, and it works just fine for them, so the problem must be elsewhere.
It's actually easy to find the issue.
If you look for the error message online the first result on google is:
stackoverflow.com/questions/15578855/pay...e-to-invalid-address
And it says that it can happen when some fields of the address are not filled in.
So I went on your checkout and I saw this:
take.ms/cYra8
So you removed some of the fields of the addresses which are necessary for PayPal Pro. Enable them back and fill them in your user address and it will work.

The following user(s) said Thank You: Ingram

Please Log in or Create an account to join the conversation.

Time to create page: 0.069 seconds
Powered by Kunena Forum