django-payments
django-payments copied to clipboard
Improved Logging
I've recently implemented PayPal transactions with django-payments. There does not appear to be any logging for failed requests to the PayPal API, and instead the app just displays an "Internal Paypal Error" message without any details about the response. If I added logging to write some part of the HTTP response would you be open to accepting the pull request?
A PR with improve logging is most welcome.
As a rule though:
- ERROR should be stuff like an invalid API response for paypal or alike.
- INFO should be stuff like "payment success", "payment rejected".
- DEBUG can include API responses and finer grained stuff that you'd only want while debugging/testing.