common: add a __repr__ implementation to PaymentResponse (#7496)
This commit is contained in:
parent
768545df13
commit
0562850ac3
|
@ -72,6 +72,9 @@ class PaymentResponse(object):
|
|||
def is_error(self):
|
||||
return self.result == ERROR
|
||||
|
||||
def __repr__(self):
|
||||
return '<%s %s>' % (self.__class__.__name__, repr(self.__dict__))
|
||||
|
||||
|
||||
class PaymentCommon(object):
|
||||
PATH = '/tmp'
|
||||
|
|
Loading…
Reference in New Issue