Example #1
0
 /**
  * Class constructor.
  *
  * @param bool $use_curl Use curl.
  * @param bool $force_ssl_v3 Force SSL encoding.
  * @param bool $follow_location Follow location.
  * @param bool $use_ssl Use SSl.
  * @param bool $use_sandbox Sandbox mode.
  * @param int $timeout Default timeout.
  */
 public function __construct($use_curl = true, $force_ssl_v3 = true, $follow_location = false, $use_ssl = false, $use_sandbox = false, $timeout = 30)
 {
     self::$use_curl = $use_curl;
     self::$force_ssl_v3 = $force_ssl_v3;
     self::$follow_location = $follow_location;
     self::$use_ssl = $use_ssl;
     self::$use_sandbox = $use_sandbox;
     self::$timeout = $timeout;
 }