https://github.com/peteryangs/wechatpay
微信支付sdk
https://github.com/peteryangs/wechatpay
Last synced: 10 months ago
JSON representation
微信支付sdk
- Host: GitHub
- URL: https://github.com/peteryangs/wechatpay
- Owner: PeterYangs
- License: mit
- Created: 2018-05-02T07:13:07.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-12-30T02:53:21.000Z (over 6 years ago)
- Last Synced: 2025-08-20T06:07:16.613Z (10 months ago)
- Language: PHP
- Size: 21.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wechatpay
微信支付sdk
### 小程序和公众号支付
##### 支付请求
```php
getType('weapp');
//获取支付参数
$param=$weapp->getPayParam(
'支付测试',
time(),
1,
'127.0.0.1',
'http://www.baidu.com',
'xxx',
'123'
);
```
##### 支付通知检查
```php
check();
```
##### 退款申请
```php
refund(
'1111111',
time(),
1,
1,
'http://www.baidu.com'
);
```
##### 退款通知检查
```php
check_refund();
```
##### 成功应答
```php
return_success();
```
#### 其他支付完善中。。。。