code: def create_payload(self):
          
          doc = etree.fromstring(self.message)
          self.payload = etree.tostring(doc, encoding="utf-8")
          self.payload = urlsafe_b64encode(self.payload).decode("ascii")
          return self.payload
docs: Create the payload doc.
  
          Returns:
              str