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 37% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

535d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f0e750b9f79780b405583e9b66bbb4113a585966171c552d865dab2e2340b68b?d=identicon)[raojeet](/maintainers/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

[payu/apple-pay

ApplePay Token Decoder

51983.2k](/packages/payu-apple-pay)[civicrm/civicrm-core

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

728272.9k20](/packages/civicrm-civicrm-core)[poly-crypto/poly-crypto

High-level cryptographic functions that are interoperable between NodeJS and PHP 7.1+

127.8k1](/packages/poly-crypto-poly-crypto)

PHPackages © 2026

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