Esempio n. 1
0
 public function __construct($applicationprofileid, $merchantprofileid, $workflowid, $isTestAccount, $identitytoken = null, $sessiontoken = null)
 {
     $this->connection = VelocityConnection::instance();
     // VelocityConnection class object store in private data member $connection.
     self::$identitytoken = $identitytoken;
     self::$applicationprofileid = $applicationprofileid;
     self::$merchantprofileid = $merchantprofileid;
     self::$workflowid = $workflowid;
     self::$isTestAccount = $isTestAccount;
     if (empty($sessiontoken) && !empty($identitytoken)) {
         $this->sessionToken = $this->connection->signOn();
     } else {
         $this->sessionToken = $sessiontoken;
     }
 }