|
|
|
@ -117,7 +117,7 @@ class dalianpay{ |
|
|
|
|
|
|
|
// 生成签名 |
|
|
|
$sign = $Base->Crypt->makeSign($trade_data); |
|
|
|
// echo $sign . "\r\n"; |
|
|
|
echo $sign . "\r\n"; |
|
|
|
if($sign === false) |
|
|
|
{ |
|
|
|
// echo $Base->Crypt->err_msg; |
|
|
|
@ -133,7 +133,7 @@ class dalianpay{ |
|
|
|
|
|
|
|
// 加密交易报文 |
|
|
|
$crypted_trade_data = $Base->Crypt->encryptTradeData($trade_data); |
|
|
|
// echo $crypted_trade_data . "\r\n"; |
|
|
|
echo $crypted_trade_data . "\r\n"; |
|
|
|
if($crypted_trade_data === false) |
|
|
|
{ |
|
|
|
// echo $Base->Crypt->err_msg; |
|
|
|
@ -151,7 +151,7 @@ class dalianpay{ |
|
|
|
// echo "\r\n"; |
|
|
|
// var_dump($api_url); |
|
|
|
$response = $Base->Request->send($api_url, $crypted_trade_data, $sign); |
|
|
|
// echo $response . "\r\n"; // sc_test |
|
|
|
echo $response . "\r\n"; // sc_test |
|
|
|
if($response === false) |
|
|
|
{ |
|
|
|
// echo $Base->Request->err_msg; |
|
|
|
@ -176,7 +176,7 @@ class dalianpay{ |
|
|
|
|
|
|
|
// 解密响应密文 |
|
|
|
$response_data = $Base->Crypt->decryptTradeData($response_data_crypted); |
|
|
|
// echo $response_data . "\r\n"; |
|
|
|
echo $response_data . "\r\n"; |
|
|
|
if($response_data === false) |
|
|
|
{ |
|
|
|
// echo $Base->Crypt->err_msg; |
|
|
|
|