halturin / applepay

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

AttributeError #11

Closed mike6626 closed 2 years ago

mike6626 commented 2 years ago

Currently getting this error and I am at a loss at.

shared_secred = self._private_key.exchange(ec.ECDH(), public_key) AttributeError: '_RSAPrivateKey' object has no attribute 'exchange' Line 71 payment.py

I've used Python 3.7 and 3.8. I believe that I am passing everything to payment.decrypt(token['header']['ephemeralPublicKey'], token['data'])