Difference between 'Connect' (OAuth) and 'Manage' (after app install) payloads

I’m building a payments app and I’d like to know how to differentiate between the two payloads:

  1. payload received from Shopify during OAuth (when merchant clicks on ‘Connect’ )

  2. payload received from Shopify when the merchant clicks on ‘Manage’ (after the app is installed)

From what I see, the payloads are the same (hmac, shop, host, timestamp). Am I missing something? I’d like to differentiate them so I can redirect to our settings page when the merchant clicks ‘Manage’.

Thanks in advance.

Hi @Paystation_Dev , I’m not a developer myself and not familiar with the payloads content, but I’ve been advised that even if the payloads were identical there should be some differentiating fields e.g. timestamp, from which you can deduce the difference as a Connect event will always pre-cede Manage. Hope that helps somewhat.

Hi @KB77 ,

Thanks for your reply, much appreciated (I’ve been waiting for a reply for a wee while now). I asked that question because a payment app doesn’t get an immediate notification from Shopify when the app has been uninstalled. Based on the webhook documentation, the app will receive a shop redact payload 48 hours after the merchant has uninstalled the app from their store. What happens if the merchant suddenly changed their mind and connects to the app again before 48 hours (while the status still hasn’t been updated to uninstalled on payments app side)? The timestamp will be different of course, but how do we tell if the merchant wanted to connect again (because of a previous uninstall), or just clicked the manage button because they only want to change the payment app settings that’s currently installed?

Also important to ask, how is uninstalling or re-installing tested during the app review process? Does the reviewer actually wait for 48 hours, or do they force sending a shop redact payload right after they uninstall?