Collect paypal transactions
[wolnelektury.git] / src / paypal / rest.py
index e70c67b..d324c4c 100644 (file)
@@ -1,5 +1,5 @@
-# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
-# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+# This file is part of Wolne Lektury, 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
@@ -136,6 +136,7 @@ def get_donations(agreement_id, year):
             continue
         assert transaction['amount']['currency'] == 'PLN'
         transactions.append({
+            'transation_id': transaction['transaction_id'],
             'timestamp': dt,
             'amount': Decimal(transaction['amount']['value'])
         })