#praveendd25
1 messages · Page 1 of 1 (latest)
From https://support.stripe.com/questions/stripe-india-support-for-marketplaces:
Custom Connect is only available upon request. Please reach out to our sales team if you are interested in this feature
LegalEntity is changed to which entity in create connected account
I see you updated the question. You can use Standard connect account in India
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
What are your old and new versions you updated from and to?
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
The latest one for stripe-dotnet is v41.16.0, which is a few major jumps from v15.3.0
yes i agree tell me how to map legal entity to latest class
You may refer to the API doc for the account creation in dotnet on the latest version: https://stripe.com/docs/api/accounts/create?lang=dotnet
It will be AccountCreateOptions
the api is having only less info of code you need to have some migration right from old to new one
You can check the the list of available parameters of AccountCreationOptions here: https://github.com/stripe/stripe-dotnet/blob/master/src/Stripe.net/Services/Accounts/AccountCreateOptions.cs
There can be nested options to set into
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 ?
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
LegalEntity.PersonalIdNumber will be under AccountCreationOptions.Individual (https://github.com/stripe/stripe-dotnet/blob/master/src/Stripe.net/Services/Accounts/AccountCreateOptions.cs#L90) with AccountIndividualOptions.IdNumber (https://github.com/stripe/stripe-dotnet/blob/master/src/Stripe.net/Services/Accounts/AccountIndividualOptions.cs#L77)