-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
(Pdb) trans.is_success()
*** AttributeError: 'Transaction' object has no attribute 'processor_response'
(Pdb) trans.is_declined()
*** AttributeError: 'function' object has no attribute 'get'
(Pdb)
The docstring for each says "You are better off checking trans.errors", which is good advice. Could these functions themselves be simplified to use trans.errors?
def is_success(self):
return not self.is_declined()
def is_declined(self):
return bool(self.errors)
Metadata
Metadata
Assignees
Labels
No labels