App reviews, troubleshooting, and recommendations
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi,
I just want to confirm the regular process handling the GDPR compliance webhooks.
The remix app seems to set up the default code for handling the 3 GDPR webhooks in `webhooks.tsx` where it's mixed in with handling all your other webhooks etc.
export const action = async ({ request }: ActionFunctionArgs) => { const { topic, shop, session, admin, payload } = await authenticate.webhook(request); logger(`Webhook fired for ${topic} and shop ${shop}`); if (!admin) { // The admin context isn't returned if the webhook fired after a shop was uninstalled. throw new Response(); } switch (topic) { case 'CUSTOMERS_DATA_REQUEST': case 'CUSTOMERS_REDACT': case 'SHOP_REDACT':
HMAC validation all seems to be set up with
Solved! Go to the solution
This is an accepted solution.
Shopify hasn't complained that all 3 endpoints are the same 😉
just check for the webhook topic
This is an accepted solution.
Shopify hasn't complained that all 3 endpoints are the same 😉
just check for the webhook topic