...
|
...
|
@@ -47,8 +47,8 @@ class Service extends PayAbstract |
|
|
public function getPayRequestPars(Reqparams $params)
|
|
|
{
|
|
|
$this->log->LogInfo("===开始处理支付宝的请求参数===");
|
|
|
$this->log->logInfo("-----请求参数为---");
|
|
|
$this->log->logInfo(var_export($params, true));
|
|
|
$this->log->LogInfo("-----请求参数为---");
|
|
|
$this->log->LogInfo(var_export($params, true));
|
|
|
|
|
|
$baseUrl = $this->getBaseNoticeUrl($params->isTest);
|
|
|
// $loseTime = intval(($params->orderTime + 7200 -time())/60);
|
...
|
...
|
@@ -101,7 +101,7 @@ class Service extends PayAbstract |
|
|
'reqType' => 'get'
|
|
|
);
|
|
|
|
|
|
$this->log->LogInfo('----支付宝回调处理结果为----');
|
|
|
$this->log->LogInfo('----支付宝请求处理结果为----');
|
|
|
$this->log->LogInfo(var_export($result, true));
|
|
|
|
|
|
return $result;
|
...
|
...
|
@@ -113,19 +113,19 @@ class Service extends PayAbstract |
|
|
* http://www.yohobuy.com/pay/notice/alipayreturn?buyer_email=tds%40smartunite.com&buyer_id=2088302294447308&exterface=create_direct_pay_by_user&is_success=T¬ify_id=RqPnCoPT3K9%252Fvwbh3I7xtEV5W65QRToFQ5fPrXsVxt12e%252FExCtC1XNiKnuRwupLaVLAR¬ify_time=2011-06-11+07%3A48%3A10¬ify_type=trade_status_sync&out_trade_no=1061003000&payment_type=1&seller_email=shop%40yoho.cn&seller_id=2088001550230585&subject=YOHO%E5%95%86%E5%93%81&total_fee=0.01&trade_no=2011061199833830&trade_status=TRADE_SUCCESS&sign=ca1c49f58d17eaa57aac308d0ac64434&sign_type=MD5
|
|
|
*/
|
|
|
$this->log->LogInfo("===开始解析支付宝的回调参数===");
|
|
|
$this->log->logInfo("-----回调参数为---");
|
|
|
$this->log->logInfo(var_export($arrResponse, true));
|
|
|
$this->log->LogInfo("-----回调参数为---");
|
|
|
$this->log->LogInfo(var_export($arrResponse, true));
|
|
|
|
|
|
if (isset($arrResponse['q'])) {
|
|
|
unset($arrResponse['q']);
|
|
|
}
|
|
|
$rsp = new Rspparams();
|
|
|
if (!$this->checkResponse($arrResponse)) {
|
|
|
$this->log->logInfo("-----支付宝回调参数验证签名失败---");
|
|
|
$this->log->LogInfo("-----支付宝回调参数验证签名失败---");
|
|
|
//验证不成功
|
|
|
$rsp->payResult = -1;
|
|
|
} else {
|
|
|
$this->log->logInfo("-----支付宝回调参数验证签名成功---");
|
|
|
$this->log->LogInfo("-----支付宝回调参数验证签名成功---");
|
|
|
$rsp->bankName = "";
|
|
|
$outTradeNo = $arrResponse["out_trade_no"];
|
|
|
$rsp->orderCode = $outTradeNo;
|
...
|
...
|
@@ -138,6 +138,10 @@ class Service extends PayAbstract |
|
|
$rsp->tradeNo = $arrResponse['trade_no'];
|
|
|
$rsp->bankBillNo = "";
|
|
|
}
|
|
|
|
|
|
$this->log->LogInfo("-----解析支付宝回调参数的结果为---");
|
|
|
$this->log->LogInfo(var_export($rsp, true));
|
|
|
|
|
|
return $rsp;
|
|
|
}
|
|
|
|
...
|
...
|
|