Why isn't my custom app installing in the store despite correct permissions?

i have created the custom app when we generate that link did not work . It show the the message of dont have the permission.

link : https://duxton-us.myshopify.com/admin/oauth/install_custom_app?client_id=d45c640a7e1dc483fecfccef3e2f4e27&signature=eyJfcmFpbHMiOnsibWVzc2FnZSI6ImV5SmxlSEJwY21WelgyRjBJam94TmpJMU1ETXpOVGN5TENKd1pYSnRZVzVsYm5SZlpHOXRZV2x1SWpvaVpIVjRkRzl1TFhWekxtMTVjMmh2Y0dsbWVTNWpiMjBpTENKamJHbGxiblJmYVdRaU9pSmtORFZqTmpRd1lUZGxNV1JqTkRnelptVmpabU5qWldZelpUSm1OR1V5TnlJc0luQjFjbkJ2YzJVaU9pSmpkWE4wYjIxZllYQndJbjA9IiwiZXhwIjoiMjAyMS0wNy0wN1QwNjoxMjo1Mi43NDRaIiwicHVyIjpudWxsfX0%3D–3f275a0517790bf916721ab4249e87dbd9b7c9e2

but i have give all the permission after that it show me same message . can you suggest me the solution why this is not set up in the store.

Hello @Anilket26

Try to add the below code in install file .

$shop = “shop url”;
$api_key = “your api key”;
$scopes = “read_orders,write_products,read_products,read_product_listings,write_script_tags,read_themes,write_themes”;
$redirect_uri = “generate token file path”;
$install_url = “https://” . $shop . “/admin/oauth/authorize?client_id=” . $api_key . “&scope=” . $scopes . “&redirect_uri=” . urlencode($redirect_uri);

// Redirect
header("Location: " . $install_url);
die();