|
|
|
|
@ -40,16 +40,17 @@ class CourseBuyView(TemplateView): |
|
|
|
|
) |
|
|
|
|
widget = Widget( |
|
|
|
|
str(request.user.id), |
|
|
|
|
'p1', |
|
|
|
|
'p1_1', |
|
|
|
|
[product], |
|
|
|
|
extra_params={ |
|
|
|
|
'lang': 'ru', |
|
|
|
|
'evaluation': 1, |
|
|
|
|
'demo': 1, |
|
|
|
|
'test_mode': 1, |
|
|
|
|
'success_url': host + str(reverse_lazy('payment-success')), |
|
|
|
|
'failure_url': host + str(reverse_lazy('payment-error')), |
|
|
|
|
} |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
return self.render_to_response(context={'widget': widget.get_html_code()}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -79,16 +80,17 @@ class SchoolBuyView(TemplateView): |
|
|
|
|
) |
|
|
|
|
widget = Widget( |
|
|
|
|
str(request.user.id), |
|
|
|
|
'p1', |
|
|
|
|
'p1_1', |
|
|
|
|
[product], |
|
|
|
|
extra_params={ |
|
|
|
|
'lang': 'ru', |
|
|
|
|
'evaluation': 1, |
|
|
|
|
'demo': 1, |
|
|
|
|
'test_mode': 1, |
|
|
|
|
'success_url': host + str(reverse_lazy('payment-success')), |
|
|
|
|
'failure_url': host + str(reverse_lazy('payment-error')), |
|
|
|
|
} |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
return self.render_to_response(context={'widget': widget.get_html_code()}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|