#mons_api

1 messages ¡ Page 1 of 1 (latest)

chrome pecanBOT
#

👋 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.

tribal anvilBOT
viral ermine
solar canyon
#

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

viral ermine
#

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?

solar canyon
#

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}

viral ermine
#

No, you should specify a valid price ID, you can create a price through Dashboard or API

solar canyon
#

for each product? I did

viral ermine
#

If you have successfully created a price, then you should specify the price ID in the request, a price ID starts with price_

solar canyon
#

yeah i did that

viral ermine
#

What's the new request ID?

solar canyon
#

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

viral ermine
#

What's the request ID?

solar canyon
#

req_CqpOjPqKFtm9pW

#

the same error

#

idk what that is

viral ermine
#

Yes, that's due to the valid price ID, like I explained earlier.

solar canyon
#

thats the one you get from product id?

solar canyon
#

i created 4 prodcuts and i used each id key in my schema

viral ermine
#

Hmm, you mean 49955bdd-cdab-455a-9bb0-c04fb7a82d46 is the object ID in your database?

solar canyon
#

nope idk what that is

viral ermine
#

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 ?

solar canyon
#

what exactly is that, tried googling it nothing really comes up revelant to " Stripe resource ID."

#

the prodcut id?

viral ermine
#

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

solar canyon
#

yes i have that

viral ermine
#

Ok, then you should specify such ID in your request, instead of 49955bdd-cdab-455a-9bb0-c04fb7a82d46

solar canyon
#

im doing that..