Skip to content

Commit

Permalink
added:添加简单的文档说明
Browse files Browse the repository at this point in the history
  • Loading branch information
zqhong committed Apr 12, 2018
1 parent 7322435 commit daeda27
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## Omnipay:QPay


### 安装
```bash
$ composer require -vvv zqhong/omnipay-qpay
```

### 使用
```php
<?php

include __DIR__ . '/vendor/autoload.php';

use Omnipay\Omnipay;

$gateway = Omnipay::getFactory()->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()) {
// 订单查询成功操作
}
```

0 comments on commit daeda27

Please sign in to comment.