So I can't find a way to do this and looking for a solution.
On my site, when returning from PayPal or using WixPay after paying off a balance, the customer balance updates to $0. But if this fails, I want to send an automatic email to our staff alerting them of the issue with the transaction ID. I have all the code in place, I just want to send an email to a specific email address with the content determined by code. How can I go about doing this?
https://support.wix.com/en/article/triggered-emails-with-velo-getting-started