2
Full disclosure: I work at Braintree. If you have any further questions, feel free to contact support.
The third-party django-braintree library is not currently compatible with the Braintree Drop-In. The Drop-In only supports expiration_date
while the form in the library expects expiration_month
and expiration_year
, causing the KeyError you’re getting. This library has also not been updated to use payment method nonces. I would not recommend using this library, but instead write your own django integration to Braintree using our Python client library.
Source:stackexchange.com