#pratp

1 messages · Page 1 of 1 (latest)

half kindleBOT
split marten
#

Hello! can you reply in this thread please?

serene lark
#

Hi

#

my backend code is sending values to ios app, but its not defaulting email n phone

split marten
#

You're creating that account via the API, correct?

serene lark
#

yes

#

and it goes to ios app

split marten
serene lark
#

the ios app is connecting to api to get the values

#

i am not sure how to give request id

split marten
#

The guide linked above shows you how to find the request ID. You can get it from your Stripe Dashboard.

serene lark
#

try
{
var stripeAccountOptions = new AccountCreateOptions
{
Type = "express",
Email = email,
BusinessType = "individual",
Country = "US",
Company = new AccountCompanyOptions()
{
Phone = $"+1{savedProfile.PhoneNumber}"
},
Individual = new AccountIndividualOptions()
{
FirstName = savedProfile.Name,
LastName = savedProfile.Surname,
IdNumber = savedProfile.SSN,
Phone = $"+1{savedProfile.PhoneNumber}",
Email = email,

                        Dob = new DobOptions()
                        {
                            Day = convertedDateOfBirth.Day,
                            Month = convertedDateOfBirth.Month,
                            Year = convertedDateOfBirth.Year

                        },
                        Address = new AddressOptions()
                        {
                            City = savedProfile.City,
                            State = savedProfile.State,
                            Country = "US",
                            Line1 = savedProfile.Address1,
                            Line2 = savedProfile.Address2,
                            PostalCode = savedProfile.ZipCode
                        },
#

Verification = new AccountIndividualVerificationOptions()
{
Document = new AccountIndividualVerificationDocumentOptions()
{
Front = identityFront.Id,
Back = identityBack.Id
}
}
},
Settings = new AccountSettingsOptions()
{
Payouts = new AccountSettingsPayoutsOptions()
{
Schedule = new AccountSettingsPayoutsScheduleOptions()
{
Interval = "weekly",
WeeklyAnchor = "friday"
}
}
},
};

                var stripeAccount = await accountService.CreateAsync(stripeAccountOptions);
                currentUser.StripeConnectAccountId = stripeAccount.Id;
#

this is the code i am sending from my api

#

please let me know where am i wrong

#

i read all the docs , but i cannot find the solution

#

i am getting blank on both email n phone is not defualted correctly

split marten
serene lark
#

i tried at individual too

#

that also did not work

#

so i tried company level too

split marten
serene lark
#

i dnt know why i need at individual level

#

this looks like at another level

#

we are not able debug this from phone

#

thats why we are reaching out to you

#

please tell me

split marten
#

I would love to tell you, but I need to see the request ID. Do you have access to the Stripe Dashboard for the platform account?

serene lark
#

ok let me check

#

i am not sure

#

can you please check my code

split marten
#

Let's back up a bit. I can't review a large chunk of code like that. I need to see the API request you made, and for that I need a request ID. Are a you a developer? Do you have access to the Stripe account which made this API request?

serene lark
#

this is the dashboard

#

i dnt see any logs for creat account

#

can u tell me where to find it under dashboard

#

can u help ?

split marten
#

Let me see...

#

Can you filter those logs to only show account creation requests and narrow it down? Click on the API Endpoint button and type /v1/accounts there.

serene lark
#

req_k74TL8O4OgfNjJ

#

this is the requestid

split marten
#

Thanks! Let me take a look...

serene lark
#

thanks

split marten
#

Ah, okay, so this is for an Express account, and the phone number entry you're seeing is for the Express account authentication. You cannot pre-fill that value (but the phone number you provided will be used for the account being created).

serene lark
#

what does that mean?

#

we cant default it?

split marten
#

Correct. It needs to be filled out by the person onboarding.

serene lark
#

ok

#

what about email?

split marten
#

Which email?

serene lark
#

i am also passing default email

#

thats also not being defaulted

split marten
#

Can you show me a screenshot of what you're referring to?

serene lark
#

if u see this

#

email is coming empty

#

even though i am sending email

split marten
#

Yeah, that's what I was talking about above, that information is related to Express authentication (both the phone and email) and need to be filled out by the person onboarding. You cannot pre-fill those values. The email and phone provided will be used for the Express account being created, which is separate from their Express authentication.

serene lark
#

but i think email was being defaulted at one point

#

is it they recently changed this?

split marten
#

It's been this way for over a year at least, if not longer.

#

I think what you might be running into is that you're encountering a different flow because you previously created an account.

serene lark
#

So we pass an email and phone as part of the API
They request for an additional email and phone
but still use the values posted in the API to create the account?

split marten
#

If you start fresh, with no cookies or previous remnants from a previous account creation, do you see different behavior?

serene lark
#

i tried creating many new accounts, it doesnt defualt email

#

but the previous team said in march 2022 it looks email was defaulted

#

So we pass an email and phone as part of the API
They request for an additional email and phone
but still use the values posted in the API to create the account?
Where do they use the email and phone that are provided during validation

#

can you explain this

split marten
#

I'm not sure I understand the question. To clarify, are you developing an iOS app?

serene lark
#

yes

#

the ios app is calling my api

split marten
#

Okay, so if you start fresh, meaning you delete the app from the device and reinstall it, then try to go through the flow again, do you see different behavior?

serene lark
#

no its same

#

i dnt see anything defaulted

#

Doesn't It make more sense to verify the email/phone provided to create the account

split marten
#

I'm not sure how to explain what you saw earlier then. Do you have a screenshot from before?

serene lark
desert cliff
#

Hi @serene lark I'm taking over this thread

serene lark
#

Hi

#

can you let me know how to resolve this

desert cliff
#

It's a long thread, give me some time to catch up

#

OK, so basically you want to pre-fill phone number and email in an express authentication flow. As my colleague explained earlier, you can't really do it.

serene lark
#

which account can we use to prefill it