docs: 优化文档 (#957)

This commit is contained in:
yansongda 2024-04-09 13:57:21 +08:00 committed by GitHub
parent ca09de03ae
commit ee235fe96a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -56,7 +56,7 @@ return Pay::alipay()->web([
```php
Pay::config($this->config);
return Pay::alipay()->wap([
return Pay::alipay()->h5([
'out_trade_no' => time(),
'total_amount' => '0.01',
'subject' => 'yansongda 测试 - 01',
@ -71,7 +71,7 @@ return Pay::alipay()->wap([
```php
Pay::config($this->config);
return Pay::alipay()->wap([
return Pay::alipay()->h5([
'out_trade_no' => ''.time(),
'total_amount' => '0.01',
'subject' => 'yansongda 测试 - 1',

View File

@ -47,7 +47,7 @@ $result = Pay::alipay()->pay($allPlugins, $params);
指定快捷方式的 `action`,用于区分不同的场景,比如查询订单里有查询退款、转账等订单。
例如,支付宝的 `query` 快捷方式 `action``app``wap``scan``transfer` 等。
例如,支付宝的 `query` 快捷方式 `action``app``h5``scan``transfer` 等。
### _type

View File

@ -23,7 +23,7 @@
- `app()` APP 支付
- `web()` web 支付
- `wap()` wap 支付
- `h5()` h5 支付
- `success()` 响应回调
微信中

View File

@ -67,7 +67,7 @@ $order = [
],
];
return Pay::wechat()->wap($order);
return Pay::wechat()->h5($order);
// $result->h5_url;
```