Skip to content

Commit

Permalink
增加付款码支付文档 (#2823)
Browse files Browse the repository at this point in the history
  • Loading branch information
wansxlysys authored Jul 11, 2024
1 parent a954805 commit 3fbb518
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/src/4.x/payment/micropay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 付款码支付

## 配置

> 请务必先熟悉流程:<https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=5_1>

```php
$result = $app->pay([
'body' => 'image形象店-深圳腾大- QQ公仔',
'out_trade_no' => '20150806125346',
'total_fee' => 88,
'spbill_create_ip' => '123.12.12.123', // 可选,如不传该参数,SDK 将会自动获取相应 IP 地址
'auth_code' => '120061098828009406', // 扫码支付付款码,设备读取用户微信中的条码或者二维码信息
]);
```

#### 支付结果

付款码支付方式没有回调通知,支付结果直接返回,请参考:[微信付款码支付文档](https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=5_1) 更新您的订单状态。
1 change: 1 addition & 0 deletions docs/src/4.x/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ exports = module.exports = [
{ text: '账单', link: '/4.x/payment/bill.html' },
{ text: '通知', link: '/4.x/payment/notify.html' },
{ text: '红包', link: '/4.x/payment/redpack.html' },
{ text: '付款码支付', link: '/4.x/payment/micropay.html' },
{ text: '扫码支付', link: '/4.x/payment/scan-pay.html' },
{ text: 'JSSDK', link: '/4.x/payment/jssdk.html' },
{ text: '企业付款', link: '/4.x/payment/transfer.html' },
Expand Down
20 changes: 20 additions & 0 deletions docs/src/5.x/payment/micropay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 付款码支付

## 配置

> 请务必先熟悉流程:<https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=5_1>

```php
$result = $app->pay([
'body' => 'image形象店-深圳腾大- QQ公仔',
'out_trade_no' => '20150806125346',
'total_fee' => 88,
'spbill_create_ip' => '123.12.12.123', // 可选,如不传该参数,SDK 将会自动获取相应 IP 地址
'auth_code' => '120061098828009406', // 扫码支付付款码,设备读取用户微信中的条码或者二维码信息
]);
```

#### 支付结果

付款码支付方式没有回调通知,支付结果直接返回,请参考:[微信付款码支付文档](https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=5_1) 更新您的订单状态。
1 change: 1 addition & 0 deletions docs/src/5.x/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ exports = module.exports = [
{ text: '账单', link: '/5.x/payment/bill.html' },
{ text: '通知', link: '/5.x/payment/notify.html' },
{ text: '红包', link: '/5.x/payment/redpack.html' },
{ text: '付款码支付', link: '/5.x/payment/micropay.html' },
{ text: '扫码支付', link: '/5.x/payment/scan-pay.html' },
{ text: 'JSSDK', link: '/5.x/payment/jssdk.html' },
{ text: '企业付款', link: '/5.x/payment/transfer.html' },
Expand Down

0 comments on commit 3fbb518

Please sign in to comment.