Свойство | Тип | Описание | |
---|---|---|---|
$apiSecret | |||
$appId | |||
$caInfo | |||
$mchId | |||
$parameters | |||
$sslCert | |||
$sslKey |
Метод | Описание | |
---|---|---|
__construct ( string | array $appId, $mchId = null, $apiSecret = null, $sslCert = null, null $sslKey = null, null $caInfo = null ) | ||
check_sign_parameters ( ) | ||
create_hongbao_xml ( $retcode, $reterrmsg = "ok" ) |
*
|
|
curl_post_ssl ( $url, $vars, $second = 30, $aHeader = [] ) | ||
getParameter ( $parameter ) | ||
setParameter ( $parameter, $parameterValue ) |
Метод | Описание | |
---|---|---|
create_noncestr ( $length = 16 ) | ||
get_sign ( ) | 例如: appid: wxd930ea5d5a258f4f mch_id: 10000100 device_info: 1000 Body: test nonce_str: ibuaiVcKdpRxkhJA 第一步:对参数按照 key=value 的格式,并按照参数名 ASCII 字典序排序如下: stringA="appid=wxd930ea5d5a258f4f&body=test&device_info=1000&mch_i d=10000100&nonce_str=ibuaiVcKdpRxkhJA"; 第二步:拼接支付密钥: stringSignTemp="stringA&key=192006250b4c09247ec02edce69f6a2d" sign=MD5(stringSignTemp).toUpperCase()="9A0A8659F005D6984697E2CA0A 9CF3B7" |
public create_hongbao_xml ( $retcode, $reterrmsg = "ok" ) |
protected get_sign ( ) |