[Skip to main content](#vessel-content)

#   PayPal Pro API version possibly causing 10540 err

##

- **[Ingram](/forum/user/40028-ingram "View Ingram's Profile")**
- [![Ingram's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40028-ingram "View Ingram's Profile") Topic Author
- [ Offline](/forum/user/40028-ingram)

Less More

- Posts: 35
- Thank you received: 0
-
-

10 years 9 months ago [\#230257](#230257) by [Ingram](/forum/user/40028-ingram "View Ingram's Profile")  *[PayPal Pro API version possibly causing 10540 err](/forum/29-payment-methods/882358-paypal-pro-api-version-possibly-causing-10540-err#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 &quot;Error 10540: The transaction cannot be processed due to an invalid address.&quot; 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?")* was created by *[Ingram](/forum/user/40028-ingram "View Ingram's Profile")*

-- 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODIzNTgtcGF5cGFsLXByby1hcGktdmVyc2lvbi1wb3NzaWJseS1jYXVzaW5nLTEwNTQwLWVycj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

10 years 9 months ago [\#230353](#230353) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[PayPal Pro API version possibly causing 10540 err](/forum/29-payment-methods/882358-paypal-pro-api-version-possibly-causing-10540-err#230353 "-- 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 &quot;Error 10540: The transaction cannot be processed due to an invalid address.&quot; 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?")*

Hello,
After checking that link : [ developer.paypal.com/docs/classic/api/NVPAPIOverview/](https://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 : Code:

'VERSION' =&gt; '51.0',

By : Code:

'VERSION' =&gt; '200',

and test it again.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODIzNTgtcGF5cGFsLXByby1hcGktdmVyc2lvbi1wb3NzaWJseS1jYXVzaW5nLTEwNTQwLWVycj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Ingram](/forum/user/40028-ingram "View Ingram's Profile")**
- [![Ingram's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40028-ingram "View Ingram's Profile") Topic Author
- [ Offline](/forum/user/40028-ingram)

Less More

- Posts: 35
- Thank you received: 0
-
-

10 years 9 months ago [\#230386](#230386) by [Ingram](/forum/user/40028-ingram "View Ingram's Profile")  Replied by *[Ingram](/forum/user/40028-ingram "View Ingram's Profile")* on topic *[PayPal Pro API version possibly causing 10540 err](/forum/29-payment-methods/882358-paypal-pro-api-version-possibly-causing-10540-err#230386 "-- 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 &quot;Error 10540: The transaction cannot be processed due to an invalid address.&quot; 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?")*

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

- [ ![Capture&#95;2016-02-17.png](/forum/attachment/29583) ](/forum/attachment/29583 "...2016-02-17.png") [ ](/forum/attachment/29583?download=1 "...2016-02-17.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODIzNTgtcGF5cGFsLXByby1hcGktdmVyc2lvbi1wb3NzaWJseS1jYXVzaW5nLTEwNTQwLWVycj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

10 years 9 months ago [\#230392](#230392) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal Pro API version possibly causing 10540 err](/forum/29-payment-methods/882358-paypal-pro-api-version-possibly-causing-10540-err#230392 "-- 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 &quot;Error 10540: The transaction cannot be processed due to an invalid address.&quot; 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?")*

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](http://stackoverflow.com/questions/15578855/paypal-dodirectpayment-soap-api-transaction-fails-due-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](http://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](/forum/user/40028-ingram "View Ingram's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODIzNTgtcGF5cGFsLXByby1hcGktdmVyc2lvbi1wb3NzaWJseS1jYXVzaW5nLTEwNTQwLWVycj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.065 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
