code: def refund(self):
          
          from longclaw.utils import GATEWAY
          now = datetime.strftime(datetime.now(), "%b %d %Y %H:%M:%S")
          if GATEWAY.issue_refund(self.transaction_id, self.total):
              self.status = self.REFUNDED
              self.status_note = "Refunded on {}".format(now)
          else:
              self.status_note = "Refund failed on {}".format(now)
          self.save()
docs: Issue a full refund for this order