fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
polishing map fixes
[wolnelektury.git]
/
src
/
club
/
payment_methods.py
diff --git
a/src/club/payment_methods.py
b/src/club/payment_methods.py
index
8f5ff6b
..
4a596e4
100644
(file)
--- a/
src/club/payment_methods.py
+++ b/
src/club/payment_methods.py
@@
-90,6
+90,7
@@
class PayURe(PaymentMethod):
return render_to_string(
'payu/rec_widget.html',
{
return render_to_string(
'payu/rec_widget.html',
{
+ 'schedule': schedule,
'form': forms.PayUCardTokenForm(),
'pos': POSS[self.pos_id],
'widget_args': widget_args,
'form': forms.PayUCardTokenForm(),
'pos': POSS[self.pos_id],
'widget_args': widget_args,
@@
-149,13
+150,16
@@
class PayPal(PaymentMethod):
is_onetime = False
def invite_widget(self, schedule, request):
is_onetime = False
def invite_widget(self, schedule, request):
- return render_to_string(
- 'club/payment/paypal_invite.html',
- {
- 'schedule': schedule,
- },
- request=request
- )
+ if settings.PAYPAL_ENABLED:
+ return render_to_string(
+ 'club/payment/paypal_invite.html',
+ {
+ 'schedule': schedule,
+ },
+ request=request
+ )
+ else:
+ return ''
def initiate(self, request, schedule):
app = request.GET.get('app')
def initiate(self, request, schedule):
app = request.GET.get('app')