diff options
author | luxagraf <sng@luxagraf.net> | 2018-10-07 21:04:32 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-10-07 21:04:32 -0500 |
commit | 1251d41ea2eb47983a42697771c30568eb767d78 (patch) | |
tree | 5e5ac32bd2362601ca109705daf4d2bcb77f91cf /app/src | |
parent | ffcba7a415171a9c065e9b5b913eeac12c37e4b0 (diff) | |
parent | d81991b2498463e46fa5abc71e63f2c1da29cfd6 (diff) |
Merge branch 'master' of ssh://lux2:/home/lxf/git/luxagraf
Diffstat (limited to 'app/src')
-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 |