Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 823 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 823 Bytes

There is Apple payment token decoder implementation

Payment token structure described over there https://developer.apple.com/library/archive/documentation/PassKit/Reference/PaymentTokenJSON/PaymentTokenJSON.html

The library does not implement check token signature, it does only

  1. fetch merchant id from OID 1.2.840.113635.100.6.32
  2. parse public (ephemeral) key from token field which named "ephemeralPublicKey"
  3. load private key and certificate (which you've signed it from apple developer service)
  4. decoding token to json

###Tests You can run up tests just call go test ./..., all need files inside the resources folder already

###Links implementation on some languages