A
A
Artem Shishkov2020-06-19 19:32:34
Django
Artem Shishkov, 2020-06-19 19:32:34

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)

After payment, according to the logic, I should receive a letter. But it doesn't come... When I enter the url manually, the letters come
I don't understand how to fix
Django==1.9

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question