#praveendd25

1 messages · Page 1 of 1 (latest)

warm burrowBOT
viral jetty
twin bloom
#

LegalEntity is changed to which entity in create connected account

viral jetty
#

I see you updated the question. You can use Standard connect account in India

twin bloom
#

when thr is a change in nugget package why are the change in classess drastically

#

earlier when am creating a connected account i was filling into accountOptions.LegalEntity.FirstName where to fill now

viral jetty
#

What are your old and new versions you updated from and to?

twin bloom
#

ealier it was 15.3

#

now it is updated to latest

#

this is my older code var accountOptions = new StripeAccountCreateOptions()
{
Type = StripeAccountType.Custom,
Country = countryCode,
TosAcceptanceUserAgent = "true",
TosAcceptanceIp = ipAddress,
TosAcceptanceDate = currentDate,
DefaultCurrency = currency

        };
        accountOptions.LegalEntity = new StripeAccountLegalEntityOptions();
        accountOptions.LegalEntity.AddressCity = stripePaymentSettings.BusinessInformation.Address.City;
        accountOptions.LegalEntity.BusinessTaxId = stripePaymentSettings.BusinessInformation.TaxId;
        accountOptions.LegalEntity.BusinessName = stripePaymentSettings.BusinessInformation.BusinessName;
        accountOptions.LegalEntity.AddressState = stripePaymentSettings.BusinessInformation.Address.State;
        accountOptions.LegalEntity.AddressLine1 = stripePaymentSettings.BusinessInformation.Address.Address1;
        accountOptions.LegalEntity.FirstName = stripePaymentSettings.BusinessInformation.FirstName;
        accountOptions.LegalEntity.LastName = stripePaymentSettings.BusinessInformation.LastName;
        accountOptions.LegalEntity.PersonalIdNumber = stripePaymentSettings.BusinessInformation.PersonalIdNo;
        //specifying created account has capabilities of doing transactions like card payment and transfter
        accountOptions.AddExtraParam("capabilities[card_payments][requested]", "true");
        accountOptions.AddExtraParam("capabilities[transfers][requested]", "true");
#

now not able to find things in new classes

viral jetty
#

The latest one for stripe-dotnet is v41.16.0, which is a few major jumps from v15.3.0

twin bloom
#

yes i agree tell me how to map legal entity to latest class

viral jetty
#

It will be AccountCreateOptions

twin bloom
#

the api is having only less info of code you need to have some migration right from old to new one

viral jetty
#

There can be nested options to set into

twin bloom
#

LegalEntity.PersonalIdNumber what is its new class and property name ?

#

and also earlier when we create a connected accounts api was returning its secret and publish key now it is not ?

viral jetty
#

Latest v41.16.0 runs on API version 2022-11-15: https://github.com/stripe/stripe-dotnet/blob/master/src/Stripe.net/Constants/ApiVersion.cs

However, v15.3.0 runs on API version 2018-02-06: https://github.com/stripe/stripe-dotnet/blob/v15.3.0/src/Stripe.net/Infrastructure/Public/StripeConfiguration.cs#L10

There are specification changes from API version 2018-02-06 to 2022-11-15: https://stripe.com/docs/upgrades#api-versions

key property account on the Accounts has been removed since API version 2019-02-19: https://stripe.com/docs/upgrades#2019-02-19

You should use Stripe-Account header with platform key to access the connected account instead of using the key from API version 2019-02-19 onwards: https://stripe.com/docs/api/connected_accounts