This article shares some possible sample flows you may encounter when working with external billing events. This can be a helpful jumping off point as you plan your app's implementation.
Create a Wix SDK client using AppStrategy
authentication. AppStrategy
requires either the instance ID or a token:
Call Report External Billing Event through the Wix client. Send the billing event details in the method call.
If you have neither the instance ID or the access token, use an API key to report the billing event.
In the API key manager of the Wix account that owns your app, create an API key with the account-level Manage Custom Apps permission. You also need the account ID.
Create an SDK client using ApiKeyStrategy
authentication:
Call Report External Billing Event through the Wix client as above.