Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zqhong/omnipay-qpay
https://github.com/zqhong/omnipay-qpay
omnipay qpay
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/zqhong/omnipay-qpay
- Owner: zqhong
- License: mit
- Created: 2018-04-11T08:40:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-12T03:25:50.000Z (over 6 years ago)
- Last Synced: 2024-04-19T04:43:33.052Z (9 months ago)
- Topics: omnipay, qpay
- Language: PHP
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Omnipay:QPay
### 安装
```bash
$ composer require -vvv zqhong/omnipay-qpay
```### 使用
```php
create("QPay")
->setMchId('')
->setMchKey('')
->setCertFilePath('')
->setKeyFilePath('')
->setNotifyUrl('')
->setOpUserPasswd('');// 订单查询
// 参数请参考:https://qpay.qq.com/qpaywiki/showdocument.php?pid=1&docid=5
$queryOrderRequest = $gateway->queryOrder([
'transaction_id' => '',
]);
$queryOrderResponse = $queryOrderRequest->send();
if ($queryOrderResponse->isSuccessful()) {
// 订单查询成功操作
}
```