Hello, shopify app developer. I am developing an app while I have been facing a problem at almost last steps of developments.
I have succesfully registered an webhooks, we can see status after installed app. check below…
But after uninstalled app it should triggred and removing data from database which I request on delete.php file and also should create .log file to store response data. But nothing is happen. I think there might be a problem with delete.php file. I uploaded full delete.php file for your kind information. please help me if you can.
shop_domain = $decoded_data['shop_domain'];
$res = $decoded_data['shop_domain'] . ' is successfully deleted from the database';
} else {
$res = $data;
}
}
} else {
$res = 'The request is not from Shopify';
}
error_log('Response: '. $res); //check error.log to see the result
Let me know if you need to know something more.
I have followed this tutorial to create webhooks.
https://weeklyhow.com/shopify-uninstall-webhook-api-tutorial/
Best Regards
Zahid
