class PaymentMethod(object):
+ is_onetime = False
is_recurring = False
def initiate(self, request, schedule):
class PayU(PaymentMethod):
+ is_onetime = True
slug = 'payu'
name = 'PayU'
template_name = 'club/payment/payu.html'
class PayURe(PaymentMethod):
slug='payu-re'
- name = 'PayU Recurring'
+ name = 'PayU (płatność odnawialna)'
template_name = 'club/payment/payu-re.html'
is_recurring = True
return order.put()
-class PayPalRe(PaymentMethod):
- slug='paypal-re'
- name = 'PayPal Recurring'
- template_name = 'club/payment/paypal-re.html'
+class PayPal(PaymentMethod):
+ slug='paypal'
+ name = 'PayPal (płatność odnawialna)'
+ template_name = 'club/payment/paypal.html'
is_recurring = True
+ is_onetime = True
def initiate(self, request, schedule):
return reverse('club_dummy_payment', args=[schedule.key])
methods = []
-pos = getattr(settings, 'CLUB_PAYU_POS', None)
-if pos:
- payu_method = PayU(pos)
- methods.append(payu_method)
-else:
- payu_method = None
-
pos= getattr(settings, 'CLUB_PAYU_RECURRING_POS', None)
if pos:
payure_method = PayURe(pos)
else:
payure_method = None
+pos = getattr(settings, 'CLUB_PAYU_POS', None)
+if pos:
+ payu_method = PayU(pos)
+ methods.append(payu_method)
+else:
+ payu_method = None
+
-methods.append(PayPalRe())
+#methods.append(PayPal())
method_by_slug = {