#zonosdustin

1 messages · Page 1 of 1 (latest)

frozen ridgeBOT
normal coyote
#

Hi, can you share the exact/ fulls CLI request you're passing to your terminal?

#

Are you able to double check on that?

half viper
#

Yes.

#

I've tried several variations:
-d "preferred_locales=[auto]"
-d preferred_locales=[auto]
-d preferred_locales=auto
-d "preferred_locales=auto"
-d "preferred_locales=["auto"]"

Heres the full command with one example:

stripe customers create
--project-name=connect
-v 2022-11-15
-d "description=Customer for dustin+random@test.com"
-d "shipping[name]=Dustin Test"
-d "shipping[phone]=8015554444"
-d "shipping[address][city]=Midvale"
-d "shipping[address][country]=us"
-d "shipping[address][line1]=205 E. Greenwood Cir."
-d "shipping[address][postal_code]=84047"
-d "shipping[address][state]=Utah"
-d "email=dustin+random@test.com"
-d "name=Dustin Test"
-d phone=8015554444
-d "invoice_settings[footer]=Customer test footer note"
-d "preferred_locales=[auto]"

normal coyote
#

I think the issue is that you're passing [auto] there

#

Why?

half viper
#

I believe I read in a user guide that it was an available option to have the pdf select the local based on the browser, but I believe I have navigated away from that doc. Maybe I misunderstood.

#

Lol. I should have paid attention, that doc was for StripeJS supported locals.

normal coyote
#

No problem!

half viper
#

Do yo have a doc for the supported locals for this setting? I keep searching and ending up at the StripeJs doc.

#

Can you give me a valid example parameter? I'm trying the different syntaxes with fr but still getting the error.

normal coyote
#

Are you sating 'FR' and 'ES' are not working for instance?

half viper
normal coyote
#

Let me test this

half viper
#

Thank you

normal coyote
#

You seem to be passing preferred_locales: "[FR]",

#

the "" are outside of the array

half viper
#

I've tried it with the quotes inside the array, outside, the array, and both.

frozen ridgeBOT
lusty narwhal
#

can you share your exact code?

#

ah you don't use code, just curl

half viper
#

It's all in the terminal via the CLI

lusty narwhal
#

My advice: never do curl for this

#

way faster to just write code with the langage you're familiar with like you would in your integration

#

but you want -d "preferred_locales[]=auto" I think

half viper
#

For sure. I'm running some "quick" tests.

#

Looks like that worked.

#

Thank you!!

#

Exactly what I needed. 😉

lusty narwhal
#

yay!

#

Do you mind if I close this thread? My team has to run and we're trying to close all threads

half viper
#

Yep I'm good now. Take care!