mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-06 03:58:03 +08:00
[更新]修正微信企业打款测试
This commit is contained in:
parent
fc79380f0d
commit
83f30ceed8
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@
|
||||
/.DS_Store
|
||||
/vendor
|
||||
/Cache
|
||||
/Test/cert
|
||||
|
@ -21,8 +21,8 @@ return [
|
||||
'mch_id' => "1332187001",
|
||||
'mch_key' => 'A82DC5BD1F3359081049C568D8502BC5',
|
||||
// 配置商户支付双向证书目录
|
||||
'ssl_key' => '',
|
||||
'ssl_cer' => '',
|
||||
'ssl_key' => __DIR__ . DIRECTORY_SEPARATOR . 'cert' . DIRECTORY_SEPARATOR . 'apiclient_key.pem',
|
||||
'ssl_cer' => __DIR__ . DIRECTORY_SEPARATOR . 'cert' . DIRECTORY_SEPARATOR . 'apiclient_cert.pem',
|
||||
// 配置缓存目录,需要拥有写权限
|
||||
'cache_path' => '',
|
||||
];
|
@ -25,15 +25,15 @@ try {
|
||||
|
||||
// 4. 组装参数,可以参考官方商户文档
|
||||
$options = [
|
||||
'partner_trade_no' => '1008450740201411110005820873',
|
||||
'openid' => '用户的openid',
|
||||
'partner_trade_no' => time(),
|
||||
'openid' => 'o38gps3vNdCqaggFfrBRCRikwlWY',
|
||||
'check_name' => 'NO_CHECK',
|
||||
'amount' => '100',
|
||||
'desc' => '企业付款操作说明信息',
|
||||
'spbill_create_ip' => '127.0.0.1',
|
||||
];
|
||||
$result = $wechat->createTransfers($options);
|
||||
|
||||
echo '<pre>';
|
||||
var_export($result);
|
||||
|
||||
} catch (Exception $e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user