code: def lipisha_ipn(self):
          
          if not (self.request.POST.get('api_key') == LIPISHA_API_KEY and
                  self.request.POST.get('api_signature') == LIPISHA_API_SIGNATURE):
              raise HTTPBadRequest
          return process_lipisha_payment(self.request)
docs: Process lipisha IPN - Initiate/Acknowledge