pull down to refresh

I installing BTC pay server and I am trying to figure out how to fork or make and add-on for BTC pay server so that when a successful lightning network payment happens, a custom PHP code is executed. I would like to know if this is possible or someone has done something similar.
LNbits can call a webhook (any type of script) as soon an invoice was paid.
reply
ahh I still need to learn a lot :) Thank you. I'll research LNbits
reply