PHPackages                             aventusgroup/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. aventusgroup/apple-pay

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

aventusgroup/apple-pay
======================

ApplePay Token Decoder

v1.3.0(2y ago)028Apache-2.0PHPPHP ^7.4|^8.0

Since Oct 23Pushed 2y agoCompare

[ Source](https://github.com/AventusGroup/apple-pay)[ Packagist](https://packagist.org/packages/aventusgroup/apple-pay)[ Docs](https://github.com/PayU/apple-pay)[ RSS](/packages/aventusgroup-apple-pay/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (3)Used By (0)

[![Travis CI](https://camo.githubusercontent.com/0e394f83957ebce67004c251d5d2c86780f2432620472dd9a838b64e04dcc108/68747470733a2f2f7472617669732d63692e6f72672f506179552d454d45412f6170706c652d7061792e737667)](https://travis-ci.org/PayU-EMEA/apple-pay) [![Latest Stable Version](https://camo.githubusercontent.com/c077501ce9b3d9a74e266e22daae3a35e872abbae3a36785c43b6841723d258b/68747470733a2f2f706f7365722e707567782e6f72672f706179752f6170706c652d7061792f762f737461626c652e737667)](https://packagist.org/packages/payu/apple-pay) [![Total Downloads](https://camo.githubusercontent.com/43adb1c8729d9b24226d122ba051955675a70f5ab424ba3b55ca9a5332645e4b/68747470733a2f2f706f7365722e707567782e6f72672f706179752f6170706c652d7061792f646f776e6c6f6164732e737667)](https://packagist.org/packages/payu/apple-pay) [![License](https://camo.githubusercontent.com/95c411fff6dad94dceaafaec5af49deedcd77d618ea0549a0923258b6757d3a0/68747470733a2f2f706f7365722e707567782e6f72672f706179752f6170706c652d7061792f6c6963656e73652e737667)](https://packagist.org/packages/payu/apple-pay)

**Apple Pay Token Decoder**

This library is used to decode tokens for Apple Pay.

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

```
class PayU\ApplePay\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 payu/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 [https://github.com/PayU/apple-pay/blob/master/examples/decode\_token.php](https://github.com/PayU/apple-pay/blob/master/examples/decode_token.php)

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

Only works on Linux hosts with openssl installed

For open pull requests please make sure the Travis build does not fail!

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.1% 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 ~0 days

Total

2

Last Release

983d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/96ab21c277c3e70b8b1f8f376fedc6adcf5eb291eb8471ec24c865c20bf23f5a?d=identicon)[powar](/maintainers/powar)

---

Top Contributors

[![trydocatch](https://avatars.githubusercontent.com/u/5352167?v=4)](https://github.com/trydocatch "trydocatch (47 commits)")[![willemstuursma](https://avatars.githubusercontent.com/u/701299?v=4)](https://github.com/willemstuursma "willemstuursma (6 commits)")[![sergeyzinder](https://avatars.githubusercontent.com/u/69752567?v=4)](https://github.com/sergeyzinder "sergeyzinder (5 commits)")[![drealecs](https://avatars.githubusercontent.com/u/209984?v=4)](https://github.com/drealecs "drealecs (4 commits)")[![kkazik](https://avatars.githubusercontent.com/u/25502350?v=4)](https://github.com/kkazik "kkazik (2 commits)")[![gxgpet](https://avatars.githubusercontent.com/u/13217984?v=4)](https://github.com/gxgpet "gxgpet (2 commits)")[![AventusGroup](https://avatars.githubusercontent.com/u/91056196?v=4)](https://github.com/AventusGroup "AventusGroup (1 commits)")[![FromSi](https://avatars.githubusercontent.com/u/22871855?v=4)](https://github.com/FromSi "FromSi (1 commits)")

---

Tags

phpopensslApple Paydecryption

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[civicrm/civicrm-core

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

751291.4k41](/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.6M568](/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)
