|
|
|
@ -25,14 +25,15 @@ class CourseBuyView(TemplateView): |
|
|
|
f'course_{course.id}', |
|
|
|
f'course_{course.id}', |
|
|
|
course.price, |
|
|
|
course.price, |
|
|
|
'RUB', |
|
|
|
'RUB', |
|
|
|
'test', |
|
|
|
f'Курс "{course.title}"', |
|
|
|
) |
|
|
|
) |
|
|
|
widget = Widget( |
|
|
|
widget = Widget( |
|
|
|
request.user.id, |
|
|
|
str(request.user.id), |
|
|
|
'pw', |
|
|
|
'p1', |
|
|
|
[product], |
|
|
|
[product], |
|
|
|
extra_params={ |
|
|
|
extra_params={ |
|
|
|
'lang': 'ru', |
|
|
|
'lang': 'ru', |
|
|
|
|
|
|
|
'evaluation': 1, |
|
|
|
'success_url': host + str(reverse_lazy('payment-success')), |
|
|
|
'success_url': host + str(reverse_lazy('payment-success')), |
|
|
|
'failure_url': host + str(reverse_lazy('payment-error')), |
|
|
|
'failure_url': host + str(reverse_lazy('payment-error')), |
|
|
|
} |
|
|
|
} |
|
|
|
|