#dev-m_api
1 messages Β· Page 1 of 1 (latest)
π 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.
My current C# snippet
From what I can see I can't override that in the .NET client
they are marked as private variables
Hmm okie let me look closer
Wait I can't find acct_1TW8w3QpLY6LP2tm. Do you find it in your Dashboard?
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
Yeah they were deleted by another test process π
our database had the ID cached so it was trying to do an update
Alrighty - glad to hear you figured it out
thank you again
Np
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
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
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
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
I see. We will be back here soon
βοΈ 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.
no worries
Hey! taking over the shift from my colleague, do give me some time to catch up!
no worries at all
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.
thank you so much
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", },
Let me know how it goes, our SDK GitHub page also shows this association as well. Understand if it feels a bit odd to specify AddressJapanOptions when itβs not a Japanese address.π
no prob!
it seems to be working π
Thats great to hear!
i will reach out if there are any other concerns, thank you