Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加付款码支付文档 #2823

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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