Skip to content

Sepuka/apple_payment_token_decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published