#mons_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1225604012821188709
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_t4DcgCCAcown41
this one is the latest one ive made 12 req that all failed
ive seen manny say to turn enable client-only integration in settings but in test mode it doesnt give me that option
Thanks for the ID, I noticed that you specified 49955bdd-cdab-455a-9bb0-c04fb7a82d46 as the price ID in your request, and it's not a valid price ID. Where did you get it from?
I saw it on the console as well and I myself dont know what it is.
im not using any id in the file it shows the error as well
I created .env in my root project, i published my public key
in my Provider.tsx im using CartProvider and its there where i use stripe={process.env.NEXT_PUBLIC_STRIPE_KEY as string}
No, you should specify a valid price ID, you can create a price through Dashboard or API
for each product? I did
If you have successfully created a price, then you should specify the price ID in the request, a price ID starts with price_
yeah i did that
What's the new request ID?
give me a sec, since im using sanity im querying using price_id(which is the stripe product id) but its giving me null
thought i fixed it which i did in my schema but i still giving the integration error and idk what key that is that its throwing
What's the request ID?
Yes, that's due to the valid price ID, like I explained earlier.
thats the one you get from product id?
yeah did this
i created 4 prodcuts and i used each id key in my schema
Hmm, you mean 49955bdd-cdab-455a-9bb0-c04fb7a82d46 is the object ID in your database?
nope idk what that is
No, you shouldn't do that, you should use the Stripe resource ID.
Maybe you want to check your code and figure out how to correctly retrieve the Stripe resource ID ?
what exactly is that, tried googling it nothing really comes up revelant to " Stripe resource ID."
the prodcut id?
What I mean is the ID of a Stripe resource. For example, a valid Stripe price resource should have an ID looks like price_1MoBy5LkdIwHu7ixZhnattbh
yes i have that
Ok, then you should specify such ID in your request, instead of 49955bdd-cdab-455a-9bb0-c04fb7a82d46
im doing that..