#mozarella_customer-update-parameters

1 messages ยท Page 1 of 1 (latest)

viral jayBOT
#

๐Ÿ‘‹ 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. Thank you for your patience!

โฑ๏ธ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.

๐Ÿ”— 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/1214253076010242048

๐Ÿ“ Have more to share? You can add more detail below, including code, screenshots, videos, etc.

sharp agateBOT
tawny swan
#

Hi ๐Ÿ‘‹

Can you share the exact error message you are receiving?

woven wraith
#

okay one minute

tawny swan
#

Thanks! Taking a look

woven wraith
#

am i stupid i cannot do a simple update?

tawny swan
#

How are you making this request? I see you are using stripe-node but the URL you are hitting /v1/customers/Ha%20Ha isn't a valid API URL

woven wraith
#
export const updateCustomerName = async (
  fullName: string,
  stripeCustomerId: string
) => {
  await stripe.customers.update(stripeCustomerId, {
    name: fullName,
  });
};
#

this is the code

tawny swan
#

I think your parameters are mixed up.

woven wraith
#

what am i doing wrong

tawny swan
woven wraith
#

dear god

#

yeah

#

it was so nested deep within i didnt notic

#

3 am code moment

#

i am so sorry for bringing up this silly problem

tawny swan
#

No problem, it's why we're here

woven wraith
#

and i really appreciate your attention to th matter

#

thank you so much

tawny swan
#

Happy it was an easy fix ๐Ÿ™‚