PHPackages                             cloudycity/ipaynow-sdk - 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. cloudycity/ipaynow-sdk

ActiveLibrary

cloudycity/ipaynow-sdk
======================

现在支付 SDK

v1.0.0(5y ago)091↓100%1MITPHPPHP &gt;=5.6.0

Since Mar 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/CloudyCity/ipaynow-sdk)[ Packagist](https://packagist.org/packages/cloudycity/ipaynow-sdk)[ RSS](/packages/cloudycity-ipaynow-sdk/feed)WikiDiscussions master Synced 1mo ago

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

CloudyCity IPayNow Sdk
======================

[](#cloudycity-ipaynow-sdk)

[![Latest Version on Packagist](https://camo.githubusercontent.com/96359c5def8cfdc36ab055e573583a5f82829c9e3206ae556bca975c8075163c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c6f756479636974792f697061796e6f772d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cloudycity/ipaynow-sdk)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/47985b4bd453a3e6a7b7a391afeb3da7c09b1ebcaaaa04ae8df36f01de0e27b3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636c6f756479636974792f697061796e6f772d73646b2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/cloudycity/ipaynow-sdk)[![StyleCI](https://camo.githubusercontent.com/bdd44eb8ecfc71ea6d63bafa47ee1db5d61a82661bbe0f3fc3f9a45ae386c8b7/68747470733a2f2f7374796c6563692e696f2f7265706f732f3335323538303137312f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/352580171)[![Quality Score](https://camo.githubusercontent.com/a2c1af8ce30bec11e51902bb448ad95e8e59241c42e96d05db09b0d0ff6980c5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f636c6f756479636974792f697061796e6f772d73646b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/cloudycity/ipaynow-sdk)[![Total Downloads](https://camo.githubusercontent.com/3f727a05bac3b75d4cd3c1c678cf523d4a7a39c96d9d23f4f7ab83b98d2272ca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c6f756479636974792f697061796e6f772d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/cloudycity/ipaynow-sdk)

Requirement
-----------

[](#requirement)

- PHP 5.6 +

Installation
------------

[](#installation)

```
composer require cloudycity/ipaynow-sdk:*
```

Usage
-----

[](#usage)

```
use CloudyCity\IPayNowSDK\IPayNow;
use CloudyCity\IPayNowSDK\Exceptions\Exceptions;
use CloudyCity\IPayNowSDK\Exceptions\InvalidSignException;

$config = [
    'appid' => '123456789012345',                      // 商户应用唯一标识
    'key' => 'abcdefghijklmnopqrstuvwxyz123456789012', // 密钥
    'notify_url' => 'http://cloudycity.me/notify.php', // 异步回调地址 (拉起支付时必选，只用于验证回调时可选)
    'return_url' => 'http://cloudycity.me/return.php', // 同步回调地址 (拉起支付时必选，只用于验证回调时可选)
];

$order = [
    'no' => '1234560', // 订单号
    'money' => 600,    // 订单金额(单位: 分)
    'attach' => '',    // 可选，商户保留域
    'detail' => '',    // 可选，订单详情
    'ip' => '0.0.0.0', // 可选，支付端IP
];

// 拉起支付
try {
    $url = IPayNow::wechat($config)->pre($order);
    $url = IPayNow::ali($config)->pre($order);
} catch (Exceptions $e) {
     //
}

// 校验回调
try {
    PayNow::wechat($config)->verify();
    PayNow::ali($config)->verify();
} catch (InvalidSignException $e) {
    //
}
```

License
-------

[](#license)

MIT

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Every ~5 days

Total

3

Last Release

1857d ago

Major Versions

v0.1.1 → v1.0.02021-04-08

### Community

Maintainers

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

---

Top Contributors

[![CloudyCity](https://avatars.githubusercontent.com/u/17662451?v=4)](https://github.com/CloudyCity "CloudyCity (9 commits)")

---

Tags

sdkipaynow

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/cloudycity-ipaynow-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/cloudycity-ipaynow-sdk/health.svg)](https://phpackages.com/packages/cloudycity-ipaynow-sdk)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k511.3M2.2k](/packages/aws-aws-sdk-php)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)[azure-oss/storage

Azure Blob Storage PHP SDK

37985.0k5](/packages/azure-oss-storage)[yoti/yoti-php-sdk

Yoti SDK for quickly integrating your PHP backend with Yoti

27539.9k1](/packages/yoti-yoti-php-sdk)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)

PHPackages © 2026

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