mirror of
https://gitee.com/yansongda/pay.git
synced 2024-11-30 03:07:38 +08:00
Update README.md
This commit is contained in:
parent
fd921a2b5d
commit
5fd54d3808
12
README.md
12
README.md
@ -237,10 +237,14 @@ class WechatController
|
||||
public function index()
|
||||
{
|
||||
$order = [
|
||||
'out_trade_no' => time(),
|
||||
'total_fee' => '1', // **单位:分**
|
||||
'body' => 'test body - 测试',
|
||||
'openid' => 'onkVf1FjWS5SBIixxxxxxx',
|
||||
'out_trade_no' => time().'',
|
||||
'description' => 'subject-测试',
|
||||
'amount' => [
|
||||
'total' => 1,
|
||||
],
|
||||
'payer' => [
|
||||
'openid' => 'onkVf1FjWS5SBxxxxxxxx',
|
||||
],
|
||||
];
|
||||
|
||||
$pay = Pay::wechat($this->config)->mp($order);
|
||||
|
Loading…
Reference in New Issue
Block a user