I’m trying to publish my app that uses the post-purchase extension. I followed the guide, launched the app, retrieved the generated dynamic link, and used it in the extension to perform data retrieval. I noticed that everything works perfectly in my organization’s stores, but Shopify reviewers don’t see the post-purchase extension working. I debugged their store, and it turns out the app is trying to perform data retrieval from a Cloudflare domain that’s no longer available, instead of using the one pasted into the extension code.
Do you know how to fix this? I’ve been stuck with this issue for a while, and it prevents me from doing practically everything.
It sounds like maybe your post-purchase extension had an API host hard coded for a fetch call.
Did you override this variable to match your production server’s host name instead?
I followed this guide.
As Shopify says, I’m using the link generated when the app starts as the URL to make the fetch call to retrieve the data in the api.offer.tsx file. I don’t think it’s any different than the use for test stores for Shopify’s app review, or am I wrong?
Shopify’s app review team use merchant stores, there’s no special type of reviewer store. Do you have access to a store not associated with your partner account that you could test install on?
Unfortunately, I don’t know how to install the unpublished app in a store outside my organization. However, I did some testing on a store created by a colleague of mine. He then invited me to join the staff, and we installed the app (since we’re both part of the same organization), and it worked flawlessly. Do you happen to know how to install the app on a store?
Is there a bug? As I was saying, the only store not associated with my partner account is the Shopify reviewer store, which I’ve been given access to and which is giving me the error I mentioned. I’d like to fix this since I’ve been stuck for over a month. I’ve also checked all the documentation and code several times to make sure there aren’t any issues, and there shouldn’t be any.