X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/5d1dcf0b143ba6409b66ca13ddf31143d6e00a59..2c101e78aee8cd3ccf3f24a0ecaa22fa77593c5c:/src/paypal/rest.py diff --git a/src/paypal/rest.py b/src/paypal/rest.py index 11693cb8c..f1546b491 100644 --- a/src/paypal/rest.py +++ b/src/paypal/rest.py @@ -1,10 +1,9 @@ -# 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 import paypalrestsdk -import pytz from django.contrib.sites.models import Site from django.urls import reverse from django.utils import timezone @@ -70,7 +69,7 @@ def create_agreement(amount, key, app=False): plan_id = create_plan(amount) else: plan_id = plan.plan_id - start = (timezone.now() + timedelta(0, 3600*24)).astimezone(pytz.utc).strftime('%Y-%m-%dT%H:%M:%SZ') + start = (timezone.now() + timedelta(0, 3600*24)).astimezone(timezone.utc).strftime('%Y-%m-%dT%H:%M:%SZ') billing_agreement = paypalrestsdk.BillingAgreement({ "name": "Subskrypcja klubu WL", "description": "Stałe wsparcie Wolnych Lektur kwotą %s złotych" % amount,