public function getPaymentStatus($merchantToken) {
    if ($merchantToken != null && strlen(trim($merchantToken)) > 0) {
      $url = $this->url . str_replace(":merchantToken", $merchantToken, Connect2PayClient::$API_ROUTES['PAYMENT_STATUS']);
      $url .= '?apiVersion=' . $this->apiVersion;

      $result = $this->doGet($url, array(), false);

      if ($result !== null && is_object($result)) {
        $this->initStatus($result);

        if (isset($this->status)) {
          return $this->status;
        }
      }
    }

    return null;
  }
public function getPaymentStatus($merchantToken) {
    if ($merchantToken != null && strlen(trim($merchantToken)) > 0) {
      $url = $this->url . str_replace(":merchantToken", $merchantToken, Connect2PayClient::$API_ROUTES['PAYMENT_STATUS']);
      $url .= '?apiVersion=' . $this->apiVersion;

      $result = $this->doGet($url, array(), false);

      if ($result !== null && is_object($result)) {
        $this->initStatus($result);

        if (isset($this->status)) {
          return $this->status;
        }
      }
    }

    return null;
  }
public function getPaymentStatus ( $ merchantToken ) { if ( $ merchantToken != null && strlen ( trim ( $ merchantToken ) ) > 0 ) { $ url = $ this -> url . str_replace ( ":merchantToken" , $ merchantToken , Connect2PayClient :: $ API_ROUTES [ 'PAYMENT_STATUS' ] ) ; $ url .= '?apiVersion=' . $ this -> apiVersion ; $ result = $ this -> doGet ( $ url , array ( ) , false ) ; if ( $ result !== null && is_object ( $ result ) ) { $ this -> initStatus ( $ result ) ; if ( isset ( $ this -> status ) ) { return $ this -> status ; } } } return null ; }
Do a transaction status request on the payment page application.

@param string $merchantToken
The merchant token related to this payment
@return PaymentStatus The PaymentStatus object of the payment or null on
error
Do a transaction status request on the payment page application .