fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Collect paypal transactions
[wolnelektury.git]
/
src
/
paypal
/
rest.py
diff --git
a/src/paypal/rest.py
b/src/paypal/rest.py
index
e70c67b
..
d324c4c
100644
(file)
--- a/
src/paypal/rest.py
+++ b/
src/paypal/rest.py
@@
-1,5
+1,5
@@
-# This file is part of Wolne
l
ektury, licensed under GNU Affero GPLv3 or later.
-# Copyright © Fundacja
Nowoczesna Polska
. See NOTICE for more information.
+# This file is part of Wolne
L
ektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja
Wolne Lektury
. See NOTICE for more information.
#
from datetime import date, datetime, timedelta
from decimal import Decimal
#
from datetime import date, datetime, timedelta
from decimal import Decimal
@@
-136,6
+136,7
@@
def get_donations(agreement_id, year):
continue
assert transaction['amount']['currency'] == 'PLN'
transactions.append({
continue
assert transaction['amount']['currency'] == 'PLN'
transactions.append({
+ 'transation_id': transaction['transaction_id'],
'timestamp': dt,
'amount': Decimal(transaction['amount']['value'])
})
'timestamp': dt,
'amount': Decimal(transaction['amount']['value'])
})