PHPackages                             silviokennecke/apple-pay-token-decoder - 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. silviokennecke/apple-pay-token-decoder

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

silviokennecke/apple-pay-token-decoder
======================================

ApplePay Token Decoder

1.2.1(3y ago)010Apache-2.0PHPPHP &gt;=7.4

Since Jul 8Pushed 3y agoCompare

[ Source](https://github.com/silviokennecke/apple-pay-token-decoder)[ Packagist](https://packagist.org/packages/silviokennecke/apple-pay-token-decoder)[ Docs](https://github.com/silviokennecke/apple-pay-token-decoder)[ RSS](/packages/silviokennecke-apple-pay-token-decoder/feed)WikiDiscussions master Synced 4w ago

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

[![CI](https://github.com/silviokennecke/apple-pay-token-decoder/actions/workflows/ci.yml/badge.svg)](https://github.com/silviokennecke/apple-pay-token-decoder/actions/workflows/ci.yml) [![Latest Stable Version](https://camo.githubusercontent.com/80575d202ec8e4504e4ab07732f09fbd9b4c41cc3c0252c46ea52f356217c1d8/68747470733a2f2f706f7365722e707567782e6f72672f73696c76696f6b656e6e65636b652f6170706c652d7061792d746f6b656e2d6465636f6465722f762f737461626c652e737667)](https://packagist.org/packages/silviokennecke/apple-pay-token-decoder) [![Total Downloads](https://camo.githubusercontent.com/10323bc38ad5d30b3409614a45d17d8ab8f726faeb3230fb12333e2bf30aed4c/68747470733a2f2f706f7365722e707567782e6f72672f73696c76696f6b656e6e65636b652f6170706c652d7061792d746f6b656e2d6465636f6465722f646f776e6c6f6164732e737667)](https://packagist.org/packages/silviokennecke/apple-pay-token-decoder) [![License](https://camo.githubusercontent.com/b834572d0e67eba9ba5b7fc1f0916bf87753240e102de7f1015d47d1b538ecd0/68747470733a2f2f706f7365722e707567782e6f72672f73696c76696f6b656e6e65636b652f6170706c652d7061792d746f6b656e2d6465636f6465722f6c6963656e73652e737667)](https://packagist.org/packages/silviokennecke/apple-pay-token-decoder)

Apple Pay Token Decoder
=======================

[](#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 SilvioKennecke\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
-------

[](#install)

Run `composer require silviokennecke/apple-pay-token-decoder`

Usage
-----

[](#usage)

See [https://github.com/silviokennecke/apple-pay-token-decoder/blob/master/examples/decode\_token.php](https://github.com/silviokennecke/apple-pay-token-decoder/blob/master/examples/decode_token.php)

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

Attribution
-----------

[](#attribution)

This is a fork of [PayU-EMEA/apple-pay](https://github.com/PayU-EMEA/apple-pay). The original library was created by [PayU](https://github.com/PayU-EMEA).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.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

1400d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/25b45977d4d0c670c751f86c5469296fc5cda679b56bc062dc5b448839e54a00?d=identicon)[silviokennecke](/maintainers/silviokennecke)

---

Top Contributors

[![trydocatch](https://avatars.githubusercontent.com/u/5352167?v=4)](https://github.com/trydocatch "trydocatch (47 commits)")[![silviokennecke](https://avatars.githubusercontent.com/u/17751219?v=4)](https://github.com/silviokennecke "silviokennecke (10 commits)")[![willemstuursma](https://avatars.githubusercontent.com/u/701299?v=4)](https://github.com/willemstuursma "willemstuursma (6 commits)")[![drealecs](https://avatars.githubusercontent.com/u/209984?v=4)](https://github.com/drealecs "drealecs (4 commits)")[![gxgpet](https://avatars.githubusercontent.com/u/13217984?v=4)](https://github.com/gxgpet "gxgpet (2 commits)")

---

Tags

phpopensslApple Paydecryption

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/silviokennecke-apple-pay-token-decoder/health.svg)

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

###  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.9k17](/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)
