you can use NWC or the alby account to have a standard rest API interface to check payments
Little bit beyond me to comprehend how to do that. Interesting though id like to look into that. Another question I have is accessing it remotely as I do travel a lot