#zeke_account-objects-mismatch

1 messages Β· Page 1 of 1 (latest)

radiant oasisBOT
#

πŸ‘‹ 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.

merry cypress
#

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!

worldly thunder
merry cypress
#

@worldly thunder yes absolutely!

#

Could you give me about 15-20 minutes sorry to waste your time!!!!

merry cypress
#

@worldly thunder here you go!

#

req_oq3ranrHKavuyx

worldly thunder
#

Thanks, taking a look

merry cypress
#

πŸ‘

worldly thunder
#

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

merry cypress
#

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?

worldly thunder
#

Can you use your Node code to retrieve the Price?

merry cypress
#

Of Course!

#

Do you need code from me?

#

or do you have it all from the logs?

worldly thunder
#

No, I'm asking you to do it

merry cypress
#

O sorry I read it wrong

#

πŸ˜‚

#

Yes I can

worldly thunder
#

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

merry cypress
#

mmmmmm

#

So your saying I mixed up my account

#

that would explan me not finding my webhook api

worldly thunder
#

It's an easy mistake to make.

merry cypress
#

well thank you so much! I just got into y other account im going to try it now!

worldly thunder
#

Great πŸŽ‰ Happy to help πŸ™‚

merry cypress
#

@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

worldly thunder
#

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

merry cypress
#

Hey I got it!

#

Thank You So much Your awesome!

worldly thunder
#

Wonderful! I'm glad we got it working for you πŸ™‚

merry cypress
#

Have a wonderful day!

worldly thunder
#

You too! πŸ‘‹