Example #1
0
 /**
  * 获取远程服务器ATN结果,验证返回URL
  *
  * @param $notify_id 通知校验ID
  * @return 服务器ATN结果
  *
  * 验证结果集:
  * invalid命令参数不对 出现这个错误,请检测返回处理中partner和key是否为空
  * true 返回正确信息
  * false 请检查防火墙或者是服务器阻止端口问题以及验证时间是否超过一分钟
  */
 function getResponse($notify_id)
 {
     $transport = strtolower(trim($this->alipay_config['transport']));
     $partner = trim($this->alipay_config['partner']);
     if ($transport == 'https') {
         $veryfy_url = $this->https_verify_url;
     } else {
         $veryfy_url = $this->http_verify_url;
     }
     $veryfy_url = $veryfy_url . "partner=" . $partner . "&notify_id=" . $notify_id;
     $responseTxt = AlipayCore::getHttpResponseGET($veryfy_url, $this->alipay_config['cacert']);
     return $responseTxt;
 }