View Single Post
  #34  
Old 03-23-2015, 09:54 PM
  random's Avatar 
random random is offline
Advanced Staff Users
 

X-Cart team
  
Join Date: Dec 2008
Posts: 79
 

Default Re: Updated X-Cart 4.x connector for X-Payments

Quote:
Originally Posted by cflsystems
The "else" portion will never run, why is there like this?

Let's imagine that we have 2.0 API version in connector that is not supported by old X-Payments.
In this case code will downgrade it to the 1.9 and so on until it find supported version.
Yes, I know that there can be versions like 1.11, but personally don't think it is a good idea to iterate through a 255+ numbers constantly calling X-Payments server
__________________
Sincerely yours,
Vladimir Petrov
Senior X-Payments Developer
Reply With Quote