Answer the question
In order to leave comments, you need to log in
I don't receive notifications from Yandex.Checkout. What to do?
Good day.
I'm trying to receive notifications from Yandex checkout with this function:
def pay_status(request):
subject, from_email, to = u'Название', 'почта@домен.ру', 'моя почта@mail.ru'
html_content = 'Ok'
text_content = ''
msg = EmailMultiAlternatives(subject, text_content, from_email, [to])
msg.attach_alternative(html_content, "text/html")
msg.send()
payment_id = request.data['object']['id']
Payment.capture(payment_id)
return HttpResponse(status=200)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question