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.


New Member
1 0 0

Can anybody provide an example of how to handle charge decline. If user clicks cancel on approve charge shopify redirects to main app page but app gets installed and remain use able. So how do we check if charge was declined and no active payment plan so that we can restrict app usage ?