#jason-connect-accountlink
1 messages ยท Page 1 of 1 (latest)
What's the scenario you're trying to detect? These account links should only be possible to create via your platform, correct?
Correct. It takes them to the acount link page and they enter their info. I want to detect if they complete it.
Thanks
I don't believe there's an event for this, since you can detect that in your code when you create the link
There's no other way for this to happen AFAIK
They code detects when they go to the link but not that they completee the form. But thanks!
Does that get you what you need?
No unfortunately it doesnt but I guess I will have to find a work around :/
If you're creating the Login Links, you can produce the signal internally when that happens, instead of having Stripe send you a webhook that tells you that you called the create login link API
That snippet of code sends them to a page to fill out information, my fear is what if they say I want to fill the information out another time and close the browser with out filling it out. My app will say they got the link but no way of knowing if the form was completed and the account was actually created.
jason-connect-accountlink
@wintry ermine when you create an AccountLink you have an Account id acct_123 associated with it. When that person goes to the onboarding page and fills out information you should be getting an account.updated Event sent to your Connect webhook endpoint to reflect the change and the status of verification etc.
Thats what I thought that I read in the docs somewhere. But the account.updated hook is not triggering.
I really appriciate you guys taking the time to help.
Are you sure you're using AccountLinks the right way? I looked at that account and it seems to be a Standard account that was created back in January. I'm not really following what you are really trying to do after all and I think I need you to be a lot more specific about your goals, where this account comes from, how you're debugging, etc.
I am pretty sure I am using it right. I created in january and just about to launch been developeing the rest of the app. I thought this part was good but when I test it with live transactions I noticed the account.updated is not triggering.
this is how i set it up :
const accountLink = await stripe.accountLinks.create({
account: hasStripeAcct.stripeAcctId,
refresh_url: env.NODE_ENV === 'development' ? 'http://localhost:3000/' : 'www.test.com',
return_url: env.NODE_ENV === 'development' ? 'http://localhost:3000/welcome' : 'www.test.com',
type: 'account_onboarding',
});
is maybe the type account_onboarding the problem ?
This is what I am trying to achieve:
I need to make payouts to some of my users. So in order to do that I need to use stripe.transfers
I can only transfer if they have a connect account
so the link works and i am able to create the connect account. So i know thats working fine. The webhook is just not triggering. I have my stripe dashboard in developer showing all the web hooks going out and it is listening to account.updated
You are using Standard accounts. You should never be using the Transfers API at all
when using Standard accounts you have to use Direct Charges: https://stripe.com/docs/connect/direct-charges
Does that payment intent work for a subscription payments? For example one that is monthly ?
The same exact concept exists for Subscriptions: https://stripe.com/docs/connect/subscriptions#customer-connected-account
You are awesome. So If i needed to take a fee for each of their customers would that fall under "Create subscriptions from the end customer to the connected account"?
yes
Each month they will get say a $100 Invoice that the Customer pays and you can take your own fee as a platform say 10% so you get $10 each month and they get $90 (minus our fees)
Thank you. is there a max to how many connected accounts I can create? What if I want every customer to have a connected account?
No max
but a connected account represents an entity that you accept payments on behalf of
a Customer represents someone paying for a service
Right thats where I think i'm having trouble finding the right solution. So my ultimate goal is basically to set up an affiliate commission system. Not using rewardful. Every customer on my app is by refferal only. So every customer has an affilate that brought them on board that should get a commision.
Except of course the people brought on by me. Its like an exclusive app by referral only.
ANy ideas on what would be the right approach?
The people who refer others need a Stripe account in that case but they can't use a Standard account. You need an Express account for those and it comes with different rules. Affiliate tracking is quite complex to set up and you should discuss this more with our support team entirely instead: https://support.stripe.com/contact
oh wel in my app I am using express
for them
here is the code
await stripe.accounts.create({
type: 'express',
thats why i was transfering
I dont know if they completed the account to transfer because the web hook is not triggering
oh boy
but now i wonder if when i look at the account via the api with the account id that i created for them if it says complete
so all this time you were talking about Express but shared a Standard account id?
Really, what I said when I joined holds: we send account.updated as we collect information and start verifying it, and as a platform you can listen to that Event and react accordingly
when did i share a standard account id lso sorry. I would love to send you like a starbucks git card for your help.
Thats what I thought but the expres is just not triggering
the webhook for account.updated
The first message you shared had a Standard account id
that was from the docs
so lets take a step back really
Step 1: create an Express account
Step 2: go through onboarding
Step 3: share the account id and I'll show you
ok
here is an account id that i created
acct_1NVGF1BHfeanw2eI
here are my pictures of web hooks when i created that account and paid a subscription
Yeah you forgot to add a Connect webhook endpoint ๐
\
you only have an Account webhook endpoint, you only get Events for your own account :p
I have both ๐
the the regular hook
this is what triggered in the connect webhook
see they were the same time
That is the events im listeing to on the connect web hook
nah you don't
Sorry you're giving me truncated pictures and we use the same words to mean different things so it's tough to help but I am looking at your platform and I'm certain you do not have any Test mode Connect webhook endpoint configured
you do not
ok let me see what happen then
You have 2 Live endpoints, both of them are Account webhook endpoints sure you have the word "connect" in the URL but that's irrelevant
man i thought i clicked connect
When you create the webhook endpoin in the Dashboard you need to select the second options
Okquick opinion, do you think thats a good approach?
to do transfers like that
or is there a down side?
because rewardful wants to just give me a spreadsheet and have me use paypal payout in bulk, but users need paypal email etc and its so sloppy
I prefer doing it this way though i can see the fee for the subsctiption then the fee for the transers adding up
That seems to work yes but this is a better question for our support team ๐
we can help with code here, not compliance and flow of funds and what is and isn't allowed