php 解密微信支付返回的req_info 加密串
//退款的加密信息
$req_info = $refund_notify_info['req_info'];
$api_key = config('api_key');
// 对加密信息进行解密,需要用到商户秘钥
$req_info_xml = openssl_decrypt(base64_decode($req_info), 'aes-256-ecb',md5($api_key),OPENSSL_RAW_DATA);
$req_info_data = $wechat->xmlToArray..
原创
2020-12-04 16:10:48 ·
995 阅读 ·
0 评论