Skip to content

zqhong/omnipay-qpay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Omnipay:QPay

安装

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

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages