#zeke_account-objects-mismatch
1 messages Β· Page 1 of 1 (latest)
π Welcome to your new thread!
β²οΈ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
β±οΈ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1254874633316991059
π Have more to share? Add details, code, screenshots, videos, etc. below.
Payment-router.ts:
const line_items: Stripe.Checkout.SessionCreateParams.LineItem[] = [];
filteredProducts.forEach((product) => {
line_items.push({
price: product.priceId!,
quantity: 1,
});
});
line_items.push({
price: "price_1PVHypCRFC1quccXo48w9mkm",
quantity: 1,
adjustable_quantity: {
enabled: false,
},
});
Im going to grab some lunch! I will be right back!
Hi π
Could you provide a request that returns the error you are seeing here? It will start with req_
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
@worldly thunder yes absolutely!
Could you give me about 15-20 minutes sorry to waste your time!!!!
Thanks, taking a look
π
Okay it's what the error says. This price price_1PFMnQ05fNcBdPQgwm5U8Vdh does not exist on the account acct_1PVDwaCRFC1quccX which is attempting to create the Checkout Session
Yes! But when I go to my Products and click on the only one, I see priceId so I copied it and put it in.
So thatβs what I thought was weird
see how its at the bottom?
Can you use your Node code to retrieve the Price?
No, I'm asking you to do it
The account the Price belongs to is acct_1P59T605fNcBdPQg but the account that is making the request to Checkout Sessions API is acct_1PVDwaCRFC1quccX
I think you just have your API keys mixed up
Both accounts have the same admin email address
mmmmmm
So your saying I mixed up my account
that would explan me not finding my webhook api
It's an easy mistake to make.
well thank you so much! I just got into y other account im going to try it now!
Great π Happy to help π
@worldly thunder So im still getting the same error from the logs
req_D7MXB9OV8LFb2M
This time signed into my other account because thats the original one for my business. I reinput the Secret key into my env and made a new product/productId. I restarted the dev server and still got the same error. Did I make another mistake?
I noticed im also not in test mode for this one but when I switch to test mode it goes to my other account
Okay let's take this step by step:
- Account identified by the API key used:
acct_1P59T605fNcBdPQg - Account the Price belongs to :
acct_1P59T605fNcBdPQgπ
But the error message says
a similar object exists in test mode, but a live mode key was used to make this request.
So in this case you made a Live mode request but used a Test mode Price
I recommend sticking with Test mode API keys
Wonderful! I'm glad we got it working for you π
Have a wonderful day!
You too! π