PHPackages                             bqdove/allinpay - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. bqdove/allinpay

ActiveLibrary[Payment Processing](/categories/payments)

bqdove/allinpay
===============

通联支付sdk开发包

v1.0(8y ago)3431MITPHPPHP &gt;=7.0

Since Mar 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/bqdove/allinpay)[ Packagist](https://packagist.org/packages/bqdove/allinpay)[ RSS](/packages/bqdove-allinpay/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

AllinPay 通联支付说明
===============

[](#allinpay-通联支付说明)

**请先熟悉 通联支付 开发文档！**

QuickReference
==============

[](#quickreference)

支付
--

[](#支付)

```
   use Bqdove\AllinPay\AllinPay;

   // 配置
   $config = [
        'payUrl' => 'http://ceshi.allinpay.com/gateway/index.do',
        'pickupUrl' => "http://www.test.com/return_callback",
        'receiveUrl' => "http://www.test.com/notify",
        'merchantId' => '100020091218001',
        'key' => '1234567890'
   ];

    // 订单
    $order = [
        'orderNo' => '0001201213',
        'orderAmount' => 100,
        'orderDatetime' => date('YmdHis', time()), // 订单提交时间
        'productName' => "测试的商品"
    ];

    // 支付 呼起通联收银台
    $allinpay = new AllinPay($config);
    echo $allinpay->pay($order);

```

查询
--

[](#查询)

```
    use Bqdove\AllinPay\AllinPay;

    $config = [
        'payUrl' => 'http://ceshi.allinpay.com/gateway/index.do',
        'pickupUrl' => "http://www.test.com/return_callback",
        'receiveUrl' => "http://www.test.com/notify",
        'merchantId' => '100020091218001',
        'key' => '1234567890'
    ];

    $order = [
        "orderNo" => "0001201212",
        "orderDatetime" => "20180322083745"
    ];

    $allinpay = new AllinPay($config);
    try {
        $result = $allinpay->find($order);
        echo "";
        var_dump($result);
    } catch (Exception $e) {
        echo $e->getMessage();
    }

    返回结果：
    Ibeach\Supports\Collection Object
    (
        [items:protected] => Array
            (
                [credentialsType] =>
                [payAmount] => 100
                [extTL] =>
                [payDatetime] => 20180322163633
                [signType] => 0
                [returnDatetime] => 20180322171210
                [credentialsNo] =>
                [paymentOrderId] => 201803221632204938
                [pan] =>
                [version] => v1.0
                [issuerId] =>
                [orderNo] => 0001201212
                [payResult] => 1
                [ext1] =>
                [ext2] =>
                [orderAmount] => 100
                [signMsg] => F8D2E1E4278FAFCCAEC35F71E4F15B2A
                [txOrgId] =>
                [errorCode] =>
                [userName] =>
                [payType] => 0
                [merchantId] => 100020091218001
                [language] => 1
                [orderDatetime] => 20180322083745
            )

    )

```

订单查询，返回 Collection 类型，可以通过 `$collection->xxx` 得到服务器返回的数据。

退款
--

[](#退款)

```
    use Bqdove\AllinPay\AllinPay;

    $config = [
        'payUrl' => 'http://ceshi.allinpay.com/gateway/index.do',
        'pickupUrl' => "http://www.test.com/return_callback",
        'receiveUrl' => "http://www.test.com/notify",
        'merchantId' => '100020091218001',
        'key' => '1234567890'
    ];

    $order = [
        'orderNo' => '0001201212',                            // 商户订单号
        'refundAmount' => 100, // 退款金额
        'orderDatetime' => '20180322083745',              // 订单创建时间
    ];

    $allinpay = new AllinPay($config);
    try{
        $result = $allinpay->refund($order);
        echo "";
        print_r($result);
    }catch (Exception $exception) {

    }

    返回结果：
    Ibeach\Supports\Collection Object
    (
        [items:protected] => Array
            (
                [merchantId] => 100020091218001
                [version] => v1.3
                [signType] => 0
                [orderNo] => 0001201212
                [orderAmount] => 10000
                [orderDatetime] => 20180322083745
                [refundAmount] => 10000
                [refundDatetime] => 20180322171848
                [refundResult] => 20
                [returnDatetime] => 20180322170944
                [signMsg] => 6B88885BAB3306DB1EBC889C2C5D4883
            )

    )
    返回 Collection 类型，可以通过 `$collection->xxx` 得到服务器返回的数据。
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2970d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a3c5ddbbccec951d0b2dd3cd66b2507dda9ae319b38eaf3720888efbdc09f4a7?d=identicon)[phonix](/maintainers/phonix)

---

Top Contributors

[![bqdove](https://avatars.githubusercontent.com/u/13446550?v=4)](https://github.com/bqdove "bqdove (2 commits)")

---

Tags

Allinpay

### Embed Badge

![Health badge](/badges/bqdove-allinpay/health.svg)

```
[![Health](https://phpackages.com/badges/bqdove-allinpay/health.svg)](https://phpackages.com/packages/bqdove-allinpay)
```

###  Alternatives

[laraveldaily/laravel-invoices

Missing invoices for Laravel

1.5k1.3M4](/packages/laraveldaily-laravel-invoices)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
