Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Accessing Metafields in post-purchase extension

Accessing Metafields in post-purchase extension

EvgeniiKasap
Shopify Partner
1 0 0

Hello, I have to make an API calls in my post-purchase UI extensions, so I am forced to hardcode my backend URL in the code. I am passing the metafield with the URL on the app side, but can't access it on the extension side. 

useAppMetafield hook doesn't work either. I am getting an error that it can be used only in a checkout UI extension. 

EvgeniiKasap_0-1717512788144.png

 


Is there any way to pass some data string dynamically to a post-purchase extension?

Replies 0 (0)