Actually, I am writing my function of accepting a payment with webmoney-merchant . You need to check whether the received request came from webmoney . How to do this?

  • so in the same place the signature should be checked, if the signature matches - it means either the request came with webmoney, or you somehow shared the secret key with everyone - BOPOH
  • Try to write more detailed questions. Explain exactly what you see the problem, how to reproduce it, what you want to get as a result, etc. - Nicolas Chabanovsky

1 answer 1

Just do not be limited to this one check

 from urllib.parse import urlparse referer = request.META.get('HTTP_REFERER') if referer and (urlparse(referer).netloc == webmoney_domain): #запрос пришёл с webmoney ...