|
|
|
@ -20,6 +20,21 @@ class dalianpay{ |
|
|
|
} |
|
|
|
return $plaintext; |
|
|
|
} |
|
|
|
|
|
|
|
public function norify_decrypt($postData){ |
|
|
|
require_once(BASE_PATH . 'helpers/dalianpay/library/Base.php'); |
|
|
|
$Base = new Base(); |
|
|
|
$response = json_decode($postData, true); |
|
|
|
$response_data_crypted = $response['data']; |
|
|
|
$response_sign = $response['sign']; |
|
|
|
|
|
|
|
// 解密响应密文 |
|
|
|
$response_data = $Base->Crypt->decryptTradeData($response_data_crypted); |
|
|
|
// echo "decryptTradeData:\r\n"; |
|
|
|
// echo $response_data . "\r\n"; |
|
|
|
return $response_data; |
|
|
|
} |
|
|
|
|
|
|
|
public function pay($openid_crypt, $order_sn, $order_amount) |
|
|
|
{ |
|
|
|
session_start(); |
|
|
|
|