diff options
Diffstat (limited to 'app/src/views.py')
-rw-r--r-- | app/src/views.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/app/src/views.py b/app/src/views.py index 20188fd..fd334f8 100644 --- a/app/src/views.py +++ b/app/src/views.py @@ -4,7 +4,7 @@ from django.contrib.syndication.views import Feed from django.urls import reverse from django.conf import settings -from paypal.standard.forms import PayPalPaymentsForm +#from paypal.standard.forms import PayPalPaymentsForm from .models import Post, Topic, Book @@ -31,16 +31,16 @@ class BookDetailView(DetailView): price = book.price_sale else: price = book.price - paypal_dict = { - "business": settings.PAYPAL_RECEIVER_EMAIL, - "amount": price, - "item_name": book.title, - "invoice": "unique-invoice-id", - "notify_url": "https://luxagraf.net/src/paypal/" + reverse('src:paypal-ipn'), - "return_url": "https://luxagraf.net/src/thank-you", - "cancel_return": "https://luxagraf.net/src/books/", - } - context['paypal_form'] = PayPalPaymentsForm(initial=paypal_dict) + #paypal_dict = { + # "business": settings.PAYPAL_RECEIVER_EMAIL, + # "amount": price, + # "item_name": book.title, + # "invoice": "unique-invoice-id", + # "notify_url": "https://luxagraf.net/src/paypal/" + reverse('src:paypal-ipn'), + # "return_url": "https://luxagraf.net/src/thank-you", + # "cancel_return": "https://luxagraf.net/src/books/", + #} + #context['paypal_form'] = PayPalPaymentsForm(initial=paypal_dict) return context |