Skip to content

Commit

Permalink
付款V2 (#2390)
Browse files Browse the repository at this point in the history
* 付款V2

微信支付资金应用类型下付款V2,即付款到零钱接口调用文档完善。

* 付款v2文档

微信支付资金应用下付款V2,即付款到零钱接口调用文档

* 付款V2调用文档

微信支付资金应用类型里付款V2,即付款到零钱接口调用文档完善

* Update examples.md

Co-authored-by: 安正超 <[email protected]>
  • Loading branch information
pengxuxu and overtrue authored Mar 11, 2022
1 parent faec344 commit 0edbaa4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/src/6.x/pay/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,30 @@ print_r($response->toArray());
```
</details>

<details>
<summary>付款(V2)</summary>

```php
$response = $api->post('/mmpaymkttransfers/promotion/transfers', [
'body' => [
'mch_appid' => $app->getConfig()['app_id'], //注意在配置文件中加上app_id
'mchid' => $app->getConfig()['mch_id'], //商户号
'partner_trade_no' => '202203081646729819743', // 商户订单号,需保持唯一性(只能是字母或者数字,不能包含有符号)
'openid' => 'ogn1H45HCRxVRiEMLbLLuABbxxxx', //用户openid
'check_name' => 'FORCE_CHECK', // NO_CHECK:不校验真实姓名, FORCE_CHECK:强校验真实姓名
're_user_name'=> '用户真实姓名', // 如果 check_name 设置为 FORCE_CHECK 则必填用户真实姓名
'amount' => '100', //金额
'desc' => '理赔', // 企业付款操作说明信息。必填
],
'local_cert' => $app->getConfig()['certificate'], //v2证书绝对路径
'local_pk' => $app->getConfig()['private_key'], //v2证书密钥绝对路径
]);

print_r(\EasyWeChat\Kernel\Support\Xml::parse($response->getContent()));
```
</details>


<!--
<details>
<summary>标题</summary>
Expand Down

1 comment on commit 0edbaa4

@vercel
Copy link

@vercel vercel bot commented on 0edbaa4 Mar 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.