#pratp
1 messages · Page 1 of 1 (latest)
Hello! can you reply in this thread please?
Hi
my backend code is sending values to ios app, but its not defaulting email n phone
You're creating that account via the API, correct?
Can you give me the request ID showing the account creation request? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
the ios app is connecting to api to get the values
i am not sure how to give request id
The guide linked above shows you how to find the request ID. You can get it from your Stripe Dashboard.
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
You're setting the phone number at the company level instead of the individual level. Try setting the phone here instead: https://stripe.com/docs/api/accounts/create#create_account-individual-phone
Okay, the next step is to give me the request ID showing the account creation with the phone number set at the individual level. Please read this, which explains where to find request IDs: https://support.stripe.com/questions/finding-the-id-for-an-api-request
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
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?
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?
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 ?
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.
Thanks! Let me take a look...
thanks
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).
Correct. It needs to be filled out by the person onboarding.
Which email?
Can you show me a screenshot of what you're referring to?
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.
but i think email was being defaulted at one point
is it they recently changed this?
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.
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?
If you start fresh, with no cookies or previous remnants from a previous account creation, do you see different behavior?
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
I'm not sure I understand the question. To clarify, are you developing an iOS app?
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?
no its same
i dnt see anything defaulted
Doesn't It make more sense to verify the email/phone provided to create the account
I'm not sure how to explain what you saw earlier then. Do you have a screenshot from before?
Hi @serene lark I'm taking over this thread
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.
which account can we use to prefill it