shared_secred = self._private_key.exchange(ec.ECDH(), public_key)
AttributeError: '_RSAPrivateKey' object has no attribute 'exchange' Line 71 payment.py
As I understand only EllipticCurvePrivateKey has this attribute.
But Apple only wants the RSA key.
I found the reason.
To decrypt the token, you need to use the Apple Pay Payment Processing certificate and not the Apple Pay Merchant identity Certificate.
Get this error, please help.
shared_secred = self._private_key.exchange(ec.ECDH(), public_key) AttributeError: '_RSAPrivateKey' object has no attribute 'exchange' Line 71 payment.py
As I understand only EllipticCurvePrivateKey has this attribute. But Apple only wants the RSA key.