PHPackages                             navari/huawei-app-gallery - 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. navari/huawei-app-gallery

ActiveLibrary

navari/huawei-app-gallery
=========================

Huawei App Galery confirm and verify inapp purchases

0.1.1(5y ago)112MITPHP

Since Apr 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Navari/huawei-app-gallery)[ Packagist](https://packagist.org/packages/navari/huawei-app-gallery)[ RSS](/packages/navari-huawei-app-gallery/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

navari/huawei-app-gallery
=========================

[](#navarihuawei-app-gallery)

[![Packagist Version](https://camo.githubusercontent.com/87f2e627c1720c4c81338e5bc5bd3c880c96cfc5f6734f35e395952f7d772551/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e61766172692f6875617765692d6170702d67616c6c6572792e7376673f7374796c653d706f706f757426636f6c6f723d616130303766)](https://packagist.org/packages/navari/huawei-app-gallery) [![License](https://camo.githubusercontent.com/367a0a04e613e927606dd348ca2ccbe7fb598e4518bf967d901ff32dd02ef3cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e61766172692f6875617765692d6170702d67616c6c6572792e7376673f7374796c653d706f706f757426636f6c6f723d666630306266)](https://camo.githubusercontent.com/367a0a04e613e927606dd348ca2ccbe7fb598e4518bf967d901ff32dd02ef3cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e61766172692f6875617765692d6170702d67616c6c6572792e7376673f7374796c653d706f706f757426636f6c6f723d666630306266)

PHP library to verify and confirm Huawei AppGallery Inapp Purchases.

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

[](#installation)

```
composer require navari/huawei-app-gallery
```

Example
-------

[](#example)

```
// Retrieving subcription data

$huawei = new \Navari\Huawei\Huawei($clientId, $clientSecret);
$result = $huawei->verifySubscription('000001788eb505debf94d1fd2bfea4bd6345d499b083ae57866244271fdaf31567f85314075203c4x5452.7.7621', '1617301931486.1C0A5292.7621');
```

Result:

```
Array (
  [responseCode] => 0,
  [inappPurchaseData] => "{\"autoRenewing\":true,\"subIsvalid\":true,\"orderId\":\"1581789719266.E359BC66.3089\",\"lastOrderId\":\"L1581789719266.E359BC66.3089\",\"packageName\":\"com.huawei.packagename\",\"applicationId\":123456,\"productId\":\"prd2\",\"kind\":2,\"productName\":\"Subscription name\",\"productGroup\":\"0DED5AC93D084C489F94312E217E1DBD\",\"purchaseTime\":1597677768003,\"oriPurchaseTime\":1597677768003,\"purchaseState\":0,\"developerPayload\":\"payload data\",\"purchaseToken\":\"00000173741056a37eef310dff9c6a86fec57efafe318ae478e52d9c4261994d64c8f6fc8ea1abbdx5347.5.3089\",\"purchaseType\":0,\"currency\":\"CNY\",\"price\":50,\"country\":\"CN\",\"subscriptionId\":\"1581789719266.D40972AC.3089\",\"quantity\":1,\"daysLasted\":0,\"numOfPeriods\":1,\"numOfDiscount\":0,\"expirationDate\":1597677948003,\"retryFlag\":1,\"introductoryFlag\":0,\"trialFlag\":0,\"renewStatus\":1,\"renewPrice\":50,\"cancelledSubKeepDays\":30,\"payOrderId\":\"WX123456789ce8e23ee927\",\"payType\":\"17\",\"confirmed\":1}"
)
```

\##Error Codes

Error codes documented in the [Huawei docs](https://developer.huawei.com/consumer/en/doc/development/HMSCore-References-V5/server-error-code-0000001050166248-V5)

Changelog
=========

[](#changelog)

Changes are documented in the [releases page](https://github.com/navari/huawei-app-gallery/releases).

License
=======

[](#license)

The library is open-sourced software licensed under the [MIT License](https://github.com/navari/huawei-app-gallery/blob/main/LICENSE).

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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 ~0 days

Total

2

Last Release

1866d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/79ed750d860834c2cdd231dbaf68372c5c484f2d28fcf677072fd8ea6a8783d0?d=identicon)[navari](/maintainers/navari)

---

Tags

huaweiinappapp gallerypurchase verify

### Embed Badge

![Health badge](/badges/navari-huawei-app-gallery/health.svg)

```
[![Health](https://phpackages.com/badges/navari-huawei-app-gallery/health.svg)](https://phpackages.com/packages/navari-huawei-app-gallery)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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