halturin / applepay

a Python library for decrypting Apple Pay payment tokens.
MIT License
60 stars 15 forks source link

what are merchant_cert.pem and merchant_private_key? #5

Open SunGg12138 opened 6 years ago

SunGg12138 commented 6 years ago
certificate_pem = open('merchant_cert.pem', 'rb').read()
private_key_pem = open('merchant_private_key', 'rb').read()

I have only a apple_pay.cer file.

halturin commented 6 years ago

These files are provided by Apple.

mattpoq-belk commented 6 years ago

@SunGg12138 convert your P12 private key and your CER cert to PEM.

See this here: https://aaronmastsblog.com/blog/apple-pay-certificates/

mattpoq-belk commented 6 years ago

@halturin great script BTW!!! Best one of all available.

inturbidus commented 6 years ago

@SunGg12138 I have gotten this working in JS https://github.com/inturbidus/applepay-token

SunGg12138 commented 6 years ago

Thank you very much.