def get_payment_status(self, payment_hash: bytes) -> int:
    info = self.get_payment_info(payment_hash)
    return (info.status if info else PR_UNPAID)
def get_payment_status(self, payment_hash: bytes) -> int:
    info = self.get_payment_info(payment_hash)
    return (info.status if info else PR_UNPAID)