We have an app published on AppExchange and we receive multiple leads daily. Some leads installs the app with a trail license issued to them and we can see that in our org through LMA app. When a Lead plan to buy the license for the app, we charge it through Stripe on our app which is not in Salesforce and we update the license for them in Salesforce manually.
We want to explore the possible ways to automate this process, so that when we receive a stripe payment then it should be able to update the license in Salesforce by using Stripe Webhook events or something similar.
As I see this doc saying that, we should not update the license through API, Apex or Trigger and we don't know if it is possible or not to automate the license management process.