zqhong/omnipay-qpay
Composer 安装命令:
composer require zqhong/omnipay-qpay
包简介
A QPay driver for the Omnipay PHP payment processing library.
README 文档
README
安装
$ composer require -vvv zqhong/omnipay-qpay
使用
<?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()) { // 订单查询成功操作 }
统计信息
- 总下载量: 45
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-11