#Wojtek
1 messages ยท Page 1 of 1 (latest)
Hmm, working for me
Super weird ๐ค
I know that this can sometimes happen sporadically
Maybe something on my side then
Which browser?
Yeah, I've seen that once before, that's why I asked here. But if it works for you, maybe it's on my env.
It's chrome
For example:
Describe the bug When running stripe-preview apps start locally and using the Safari browser, the Stripe dashboard cannot find the local app. This is because Safari content security policies preven...
Can you try a different browser? Is your CLI up-to-date?
I see now what broke it. I added stripe SDK call to the app and it stopped working ๐ค
Is it possible to use stripe sdk inside the app?
Which SDK?
The JS one. Stuff like this:
import Stripe from "stripe"
const stripe = new Stripe("KEY", {
apiVersion: "2020-08-27",
})
const account = await stripe.accounts.retrieve(accountId)
Maybe because I put a test key to the Stripe it assumed which account I'm using and it didn't find any app running for that account ๐ค
Hmm, you need to pass httpClient param when initialising the lib: https://stripe.com/docs/stripe-apps/build-ui#access-stripe-objects
Maybe related?
Thank you so much ๐
Well you'd always use the API key for the publishing account
np