Skip to content

Commit ef608b5

Browse files
committed
The first time
1 parent 7e25b90 commit ef608b5

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
## 安装
1313

1414
```php
15-
composer require code-lives/baidu
15+
composer require code-lives/baidu 1.0.0
1616
```
1717

1818
### ⚠️ 注意
@@ -80,7 +80,7 @@ $data= Baidu::init($config)->decryptPhone($session_key, $iv, $ciphertext);
8080
echo $phone['mobile'];
8181
```
8282

83-
### 百度订单查询
83+
### 订单查询
8484

8585
| 参数名字 | 类型 | 必须 | 说明 |
8686
| ------------ | ------ | ---- | -------------------- |
@@ -96,7 +96,7 @@ $order = [
9696
$data = $Baidu->findOrder($order);
9797
```
9898

99-
### 百度退款
99+
### 退款
100100

101101
| 参数名字 | 类型 | 必须 | 说明 |
102102
| ---------------- | ------ | ---- | -------------------------------------------------------------------------------------------------- |
@@ -123,7 +123,7 @@ $order = [
123123
$data= Baidu::init($config)->applyOrderRefund($order);
124124
```
125125

126-
### 百度小程序模版消息
126+
### 模版消息
127127

128128
```php
129129
$data = [
@@ -146,3 +146,17 @@ $data=[
146146
]
147147
]
148148
```
149+
150+
## 支付回调
151+
152+
```php
153+
$pay = Baidu::init($config);
154+
$status = $pay->notifyCheck();//验证
155+
if($status){
156+
$order = $pay->getNotifyOrder();
157+
//$order['tpOrderId']
158+
//$order['orderId']
159+
//$order['userId']
160+
echo 'success';exit;
161+
}
162+
```

0 commit comments

Comments
 (0)