From 5be09fdfe1dfb93ad2ee650038195673b49c14ca Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 3 Apr 2020 17:29:07 +0200 Subject: [PATCH 1/2] misc: add transaction_date to PaymentResponse (#41320) --- eopayment/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eopayment/common.py b/eopayment/common.py index 37a00f6..66578e7 100644 --- a/eopayment/common.py +++ b/eopayment/common.py @@ -94,7 +94,7 @@ class PaymentResponse(object): def __init__(self, result=None, signed=None, bank_data=dict(), return_content=None, bank_status='', transaction_id='', - order_id='', test=False): + order_id='', test=False, transaction_date=None): self.result = result self.signed = signed self.bank_data = bank_data @@ -103,6 +103,7 @@ class PaymentResponse(object): self.transaction_id = transaction_id self.order_id = order_id self.test = test + self.transaction_date = transaction_date def __repr__(self): return '<%s %s>' % (self.__class__.__name__, repr(self.__dict__)) -- 2.24.0