#jason-connect-accountlink

1 messages ยท Page 1 of 1 (latest)

twin spadeBOT
wary rose
#

What's the scenario you're trying to detect? These account links should only be possible to create via your platform, correct?

wintry ermine
#

Correct. It takes them to the acount link page and they enter their info. I want to detect if they complete it.

#

Thanks

wary rose
#

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

wintry ermine
#

They code detects when they go to the link but not that they completee the form. But thanks!

wary rose
#

Does that get you what you need?

wintry ermine
#

No unfortunately it doesnt but I guess I will have to find a work around :/

twin spadeBOT
wary rose
#

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

wintry ermine
#

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.

vague cave
#

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.

wintry ermine
#

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.

vague cave
#

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.

wintry ermine
#

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.

#

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

vague cave
#

You are using Standard accounts. You should never be using the Transfers API at all

wintry ermine
#

Does that payment intent work for a subscription payments? For example one that is monthly ?

vague cave
wintry ermine
#

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"?

vague cave
#

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)

wintry ermine
#

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?

vague cave
#

No max

#

but a connected account represents an entity that you accept payments on behalf of

#

a Customer represents someone paying for a service

wintry ermine
#

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?

vague cave
#

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

wintry ermine
#

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

vague cave
#

gotcha

#

So what's the problem then exactly?

wintry ermine
#

I dont know if they completed the account to transfer because the web hook is not triggering

vague cave
#

oh boy

wintry ermine
#

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

vague cave
#

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

wintry ermine
#

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

vague cave
#

The first message you shared had a Standard account id

wintry ermine
#

that was from the docs

vague cave
#

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

wintry ermine
#

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

vague cave
#

Yeah you forgot to add a Connect webhook endpoint ๐Ÿ˜…

wintry ermine
vague cave
#

you only have an Account webhook endpoint, you only get Events for your own account :p

wintry ermine
#

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

vague cave
#

nah you don't

wintry ermine
#

Aww man

#

taht must be it then did I do something wrong there

vague cave
#

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

twin spadeBOT
wintry ermine
#

i have them on live

#

i think

#

can you check that?

vague cave
#

you do not

wintry ermine
#

ok let me see what happen then

vague cave
#

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

wintry ermine
#

man i thought i clicked connect

vague cave
#

When you create the webhook endpoin in the Dashboard you need to select the second options

wintry ermine
#

Sweet

#

You are the man

vague cave
wintry ermine
#

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

vague cave
#

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

wintry ermine
#

Ok I have them calling me I really appriciate all your help.

#

I get paid friday and would like to send you a giftcard. How can I do that on discord?

vague cave
#

calling won't really work for something this advanced/complex. Use emails

#

And we don't need a gift card, it's our job, we're happy to help!

#

Have a great day!