#NickH
1 messages ยท Page 1 of 1 (latest)
You're just trying to update business_profile via the API, right?
So what I want to do is by the time we get to the onboarding process for new Stripe account, I want the product_description to be pre-filled so the user doesnt have to do it...
for Stripe Express
Are you using OAuth or Account Links for onboarding?
Okay, good. I'm looking at your code and I'm a bit confused about what all of this is doing. It also looks like you're trying to fetch() Stripe, but that request will likely fail with a CORS error, no?
done via Zapier
Server-side via NodeJS in a Zapier action
I'm just following the API docs ๐
its basically setting the parameters to urlform-encoded and then POSTing them off to Stripe's API
if I remove the part about business_profile it works
Bit I want prepopulated...
Which line is throwing this error Invalid object param: business_profile
ah thats what the Zapier console said was the output back from Stripe
from your servers
Maybe I could try creating the account and then calling a separate update API call?
or maybe could try using 'individual' ...
Did the attempt generate a Request ID on Stripe's side?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Ah, okay. So you're passing in an object literal, instead of the key-value pairs that the API is expecting.
hmmm maybe it needs to be business_profile[production_description]
Yeah, that might be worth a try
product*
yes I think it works one sec
OK I think it worked - it doesnt ask for the product description in onboarding anymore
Woo!
Developer Feedback: Update the API doc to specify that you may need to use "business_profile[product_description]" rather than business_profile.production_description
just a thought ๐
product_description*
(the latter seems more natural to me as a dev of 10+ years)
((that's just me though!))
Which doc are you looking at?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
all the entries there it has object.field notation
hence why I tried that in the first instance ๐
Totally valid feedback. Happy to raise that
Thanks!
can I ask - is it wise to populate the website field too as well as product description?
or is it only necessary to provide product description
(just tihnking for your KYC processes etc.)
The account should already have a URL via a different attribute on the account object, but I don't see any reason why it would be a bad idea to populate it in a description
"I operate as a Sleepfriend, which is someone who helps people relax deeply and fall asleep via video/audio call. I get paid by Sleepfriend.org who provide me with clients."
howzat?
would that be OK for your KYC process?
PS. couldve totally done with a Sleepfriend last night, v tired today!
We don't have a lot of KYC visibility, so I can't say if that would help (though I'd be surprised if it contributed to KYC at all)
If you want to ask more KYC questions, you may want to reach out to support: https://support.stripe.com/contact
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Ah ok... what I meant was, would that description be sufficient for Stripe, in principle?
for the suppliers who create Stripe Accounts
"I operate as a Sleepfriend, which is someone who helps people relax deeply and fall asleep via video/audio call. I get paid by Sleepfriend.org who provide me with clients."
Yes, that would be fine, but again: I don't know what KYC requirements are in play here, as we can only really speak to the developer side of things. That description is fine though.
Thanks ๐
How could I check? Shall I email support @ ?
One more thing -on reauth - is it OK to create a new account object via /account again? I'm guessing it doesnt get persisted in your DB until onboarding is finished
Yes, you can contact support for specific guidance on description and whats appropriate for your platform & accounts: https://support.stripe.com/contact (you can submit via the webform there instead of emailing)
You can create accounts as needed, sure. They'll stick around even if not onboarded, but in a disabled state when test/live verification info is not provided.
OK thanks ๐ maybe to keep it clean Ill try to pass the account ID in the reauth URL
trust that'll be OK
(then can resubmit and get a new redirect URL via Ajax or something to a Zapier hook)
Yes if you need to do further onboarding, you'd want to auth via your own logic before provide the sensitive account link
we will email the onboard link so that should suffice...
Passing account ID is fine. YOu can also use some internal proxy for it, but up to you. IDs are safe to expose, just not keys.
perhaps on reauth we can have "Email the link to me again"
if they click, it the redirect URL gets regenerated and emaailed again
Yea up to you how that flow works --the account links are short-lived though so any emailed ones are likely to expire before being used, pushing through the re-auth flow. Instead you could email a link yo auth on your site then generate the account link & redirect after that, but up to you
that could work also ๐
nice idea
so email our own link - and our own link on the fly does regeneration of redirect link etc and then redirects
bit of simple JS should do it I hope...
AJAX call to a Zapier hook + window.location or whatever
*With a fallback of "Click here if youre not redirected"