I'm simply trying to implement an event that creates an invoice on Xero everytime a payment is processed on Laravel backend. Its been 3 days now trying to install their SDK, many non official packages and I still don't understand how to do that. Their documentation is so bad, I don't understand everything with Xero either.
Question: What should I be looking for to achieve what I want? All guides and docs explain how to connect some sort of third party users with my Xero account, using oAuth2, a callback, getting tenants and such, I have found nothing about just using their API to create a new invoice to my own Xero account.
Everything I said might be plain gibberish, if so, please correct me.
Best Regards