PHPackages                             raojeet/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. raojeet/apple-pay

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

raojeet/apple-pay
=================

ApplePay php Token Decoder

1.0.0(1y ago)010Apache-2.0PHPPHP ^7.4|^8.0

Since Nov 28Pushed 1y ago1 watchersCompare

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

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

**Apple Pay Token Decoder PHP**

This library is used to decode tokens for Apple Pay.

It takes a payment token data and returns an ApplePayPaymentData object. ex:

```
class ApplePayIntegration\Decoding\ApplePayPaymentData#19 (9) {
  private $version =>
  int(1)
  private $applicationPrimaryAccountNumber =>
  string(16) "20427527000"
  private $applicationExpirationDate =>
  string(6) "190731"
  private $currencyCode =>
  string(3) "643"
  private $transactionAmount =>
  int(100000)
  private $deviceManufacturerIdentifier =>
  string(12) "050103073"
  private $paymentDataType =>
  string(8) "3DSecure"
  private $onlinePaymentCryptogram =>
  string(28) "Am+7lPDbobAGVT7hNAoABA=="
  private $eciIndicator =>
  NULL
}

```

**Install:**

Run `composer require raojeet/apple-pay`

**Get AppleRootCA-G3.pem:**

1. Download [AppleRootCA-G3.cer](https://www.apple.com/certificateauthority)
2. Run command: `openssl x509 -inform der -in AppleRootCA-G3.cer -out AppleRootCA-G3.pem`

**Get Private Key:**

1. Export merchant certificate to a p12 cert
2. Use openssl to get the private key: `openssl pkcs12 -in .p12 -out private_key.pem -nocerts -nodes`
3. Copy content without `BEGIN` and `END` markers

**Usage:**

See

For more information about how Apple Pay tokens decoding works go to:

Only works on Linux hosts with openssl installed

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

581d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11923351?v=4)[Jeet Yadav](/maintainers/raojeet)[@raojeet](https://github.com/raojeet)

---

Top Contributors

[![raojeet](https://avatars.githubusercontent.com/u/11923351?v=4)](https://github.com/raojeet "raojeet (1 commits)")

---

Tags

phpopensslApple Paydecryption

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[payu/apple-pay

ApplePay Token Decoder

511.0M](/packages/payu-apple-pay)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[illuminate/process

The Illuminate Process package.

44869.2k99](/packages/illuminate-process)[ycodetech/valet-windows

A more enjoyable local development experience for Windows. A Windows port of the popular Laravel Valet and a fork of cretueusebiu/valet-windows, with new features.

451.7k](/packages/ycodetech-valet-windows)

PHPackages © 2026

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