#SJ057

1 messages · Page 1 of 1 (latest)

clever cryptBOT
dry lynx
#

Hi there, can you share with me the relevant code?

bleak trellis
#

I am trying to call api on my local machine.

#

const aiurl = ${EnviormentApiUrl(userContext.environmentMode)}/url;
const fetchres = await fetch(aiurl, {
method: "post",
headers: {
"Content-Type": "application/json",
//"stripe-signature": await fetchStripeSignature(payload),
},
body: JSON.stringify({
user_id: userContext?.id,
account_id: userContext?.account.id,
}),
});
const data = fetchres;
setredirectURL(await data.text());
}

dry lynx
#

And what does the ${EnviormentApiUrl(userContext.environmentMode)}/url; resolve to?

bleak trellis
#

with respect to stripe app

dry lynx
#

I'm asking what's the runtime value of ${EnviormentApiUrl(userContext.environmentMode)}/url ?

bleak trellis
dry lynx