You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(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)
The text was updated successfully, but these errors were encountered:
The docstring for each says "You are better off checking
trans.errors
", which is good advice. Could these functions themselves be simplified to usetrans.errors
?The text was updated successfully, but these errors were encountered: