#dev-m_api

1 messages Β· Page 1 of 1 (latest)

cerulean swallowBOT
#

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

πŸ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

onyx orchid
wintry dock
#

Hi, looking into this...

#

Looks like you need the Stripe Account header

onyx orchid
#

From what I can see I can't override that in the .NET client

#

they are marked as private variables

wintry dock
#

Hmm okie let me look closer

#

Wait I can't find acct_1TW8w3QpLY6LP2tm. Do you find it in your Dashboard?

onyx orchid
#

it's a sandbox i am using for our tests

#

let me double check

#

Oh ok, I think I know what's going on, leave it with me πŸ™‚

#

thanks for helping me think it through

wintry dock
#

So the account was deleted or deactivated?

#

Just curious πŸ™‚

onyx orchid
#

Yeah they were deleted by another test process πŸ˜„

#

our database had the ID cached so it was trying to do an update

wintry dock
#

Alrighty - glad to hear you figured it out

onyx orchid
#

thank you again

wintry dock
#

Np

onyx orchid
#

in case you are still here

#

reason i am trying to do this
createOptions.AddExtraParam("identity['individual']['address']['city']", billingAddress.Country);

is because the Individual ADdress field is expecting a Japanese formatted address in the beta sdk

#

however I get an invalid field error req_v2Y0L45EfZb8qzDj3

wintry dock
#

I see

  identity.individual.address.country: "**",

Shouldn't it expand to nested object instead of chaining dot?

#
createOptions.AddExtraParam("identity['individual']['address']['city']", billingAddress.Country);

Was this the code? It has "city" points to Country

onyx orchid
#

I tried that as well

#

whoops that .Country is a typo

wintry dock
#

The error is on the country Some fields in the request were invalid: 'identity.individual.address.country: Unknown field

#

I think you need to use the structured .NET parameter, instead of AddExtraParam if that's what sending your identity.individual.address.country

onyx orchid
#

well that's the original issue the Individual.address expects a AddressJapanOptions

#

not sure if this is a bug in the beta sdk?

#

one of the integration engineers I was speaking to suggested we use the AddExtraParam

wintry dock
#

I see. We will be back here soon

cerulean swallowBOT
#

⛔️ Stripe developers have stepped away for a short while

Please leave your questions here, and we’ll respond as soon as we're back! If you need help urgently, you can contact Stripe support for help.

onyx orchid
#

no worries

cerulean swallowBOT
ivory viper
#

Hey! taking over the shift from my colleague, do give me some time to catch up!

onyx orchid
#

no worries at all

ivory viper
#

Apologies for the wait. I’m currently testing this out! In the meantime, please feel free to work on any other tasks while you wait.

onyx orchid
#

thank you so much

ivory viper
#

Hey, thanks for waiting! using AddressJapanOptions is correct and not a bug. AddressJapanOptions is a superset of AddressOptions.It includes the standard address fields (line1, line2, city, state, postal_code, country) plus Japan-specific fields like town.

To accommodate Japanese addresses that require the town field, this superset/wrapper was introduced. However, underneath, the object is still based on AddressOptions.

So this should work

new Stripe.V2.Core.AccountCreateIdentityIndividualOptions { Address = new Stripe.AddressJapanOptions { Country = "NZ", City = "AUCKLAND", Line1 = "xxx", Line2 = "xxxx", },

onyx orchid
#

Ah got it

#

I am trying it now

ivory viper
onyx orchid
#

I think that's what got me!

#

thank you so much

ivory viper
#

no prob!

onyx orchid
#

it seems to be working πŸ™‚

ivory viper
#

Thats great to hear!

onyx orchid
#

i will reach out if there are any other concerns, thank you