#benjamin_api

1 messages · Page 1 of 1 (latest)

drowsy ravenBOT
#

👋 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/1336613684251983962

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

ruby shard
#

Can you share the Invoice Id? in_xxx

#

I think it will fallback to the using browser locale, but need to look closer

noble mango
#

Is the invoice number sufficient?
EF36CFFE-0001

I can find out the invoice Id as well, but i would need to write some code for that

ruby shard
#

Can you find in your Dashboard?

#

Paste to the Search bar

drowsy ravenBOT
noble mango
#

It's not my own account, it's a customers account

#

But I can find out, sec

#

It is in_1QoM1HIbSLSERivQQvseGRuV

ancient raven
#

To clarify, the problem is that the default language is German?

noble mango
#

The Problem is that customer.preferredLocales is not filled, but the invoice is in german. I would like to know how I can find out that this is in German so I can adjust my mail texts accordingly

ancient raven
#

It's in German by default because you have a German Stripe account. So when preferredLocales is not set the text will be in German.

#

Let me see if you can change the default language.

noble mango
#

Thanks! Can I read this information from my connected accounts somehow? I did not find such a thing in the API

ancient raven
#

Good question. I don't know. Let me check...

#

Are you using Direct or Destination charges?

noble mango
#

To be honest, I don’t know what that means 😁

ancient raven
#

How are you creating the Invoices? On your Platform account (and then transfering the funds), or directly on the Connected account?

noble mango
#

The setup is that I published a Stripe App which other Stripe users install. If they create an invoice (no matter how), I react on the invoice.finalized event and send an email

#

So I don’t have a platform account, but I have connected accounts and they create the invoice themselves

ancient raven
#

Thanks for clarification. I understand what you mean now.

drowsy ravenBOT
ancient raven
#

Yeah, I don't think there's a property that tells you what language the Invoice is...

noble mango
#

And not an account wide property either so I can read the default language from the account?

ancient raven
#

Yeah, sadly the settings on the Account object don't contain the language.