Handle charge decline during app installation

Shopify Partner
17 0 1

We are developing a Shopify app, and we want to prevent the app from being installed event though the user has declined the charge during app installation.

Currently what happens is, if the user declines the charge, the app will be installed either way, and displayed in the apps section.

One approach we are considering is calling the App Uninstall endpoint when the user triggered decline event takes place.