PHPackages                             guanhui07/apple\_pay - 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. guanhui07/apple\_pay

ActiveProject[Payment Processing](/categories/payments)

guanhui07/apple\_pay
====================

苹果支付 苹果内购 ios

v1.0(5y ago)04MITPHPPHP &gt;=7.1.0

Since Jul 15Pushed 1y agoCompare

[ Source](https://github.com/guanhui07/ApplePay)[ Packagist](https://packagist.org/packages/guanhui07/apple_pay)[ RSS](/packages/guanhui07-apple-pay/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

安装 composer

```
$  composer require guanhui07/apple_pay
```

```
//  $orderId 本地订单号
    // $storeProductId 苹果商店产品ID
    // $tradeNo 苹果交易号

    $order = findOrder($orderId);

    $applePay = new ApplePay($_POST['receipt'], '');
    if ($applePay->verifyReceipt()) {
        $result = $applePay->query($storeProductId,$bundleId, function ($tradeNo, $returnData) use ($order) {
            // 检查此交易号是否被使用
            if (!$order->checkTradeNoIsUsed($tradeNo)) {
                // 更新本地订单状态等...
                return $this->notify($order, $returnData, $tradeNo);
            } else {
                echo '此笔交易号已经被使用，这笔交易有可能是伪造的！';
                return false;
            }
        });
        if ($result) {
            echo 'success';
        } else {
            echo $applePay->getError();
        }
    } else {
        echo $applePay->getError();
    }
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.8% 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

2124d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3abde3fccf025ce86670101d7cfa0641d2415c9daad93e5f0c9573a2b23ddbda?d=identicon)[guanhui07](/maintainers/guanhui07)

---

Top Contributors

[![yuanzhihai](https://avatars.githubusercontent.com/u/15060466?v=4)](https://github.com/yuanzhihai "yuanzhihai (11 commits)")[![guanhui07](https://avatars.githubusercontent.com/u/5820457?v=4)](https://github.com/guanhui07 "guanhui07 (5 commits)")

---

Tags

applepaypaymentphpappleApplePay

### Embed Badge

![Health badge](/badges/guanhui07-apple-pay/health.svg)

```
[![Health](https://phpackages.com/badges/guanhui07-apple-pay/health.svg)](https://phpackages.com/packages/guanhui07-apple-pay)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[yanlongli/app-store-server-api

PHP client for App Store Server API. Manage your customers’ App Store transactions from your server.The App Store Server API is a REST API that you call from your server to request and provide information about your customers' in-app purchases. The App Store signs the transaction and subscription renewal information that this API returns using the JSON Web Signature (JWS) specification.App Store Server API is independent of the app’s installation status on the customer’s devices. The App Store server returns information based on the customer’s in-app purchase history regardless of whether the customer installed, removed, or reinstalled the app on their devices.To request transaction and subscription status information with this API, provide any original transaction identifier that belongs to the customer. The transaction history API responds with a complete list of transactions, 20 at a time, starting with the oldest first. The subscription status API returns the status for all of the customer’s subscriptions, organized by their subscription group identifier.Use the Send Consumption Information endpoint to send information to the App Store when customers request a refund for a consumable in-app purchase, after you receive the CONSUMPTION\_REQUEST App Store server notification. Your data helps inform refund decisions.

2532.0k](/packages/yanlongli-app-store-server-api)[dnetix/redirection

Library to connect with PlacetoPay Checkout service

17123.3k2](/packages/dnetix-redirection)

PHPackages © 2026

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