Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zqhong/omnipay-qpay


https://github.com/zqhong/omnipay-qpay

omnipay qpay

Last synced: about 1 month ago
JSON representation

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()) {
// 订单查询成功操作
}
```