refactored code and centralized the paygw params and test mode detection.
using curl by default to validate a transaction and if it doesn't work then try fsockopen

git-svn-id: https://plugins.svn.wordpress.org/orbisius-cyberstore/trunk@847248 b8457f37-d9ea-0310-8a92-e5e31aec5664