return render_to_string(
'payu/rec_widget.html',
{
+ 'schedule': schedule,
'form': forms.PayUCardTokenForm(),
'pos': POSS[self.pos_id],
'widget_args': widget_args,
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')