#kencale-question

1 messages ยท Page 1 of 1 (latest)

frank pier
#

@slender mountain hello! What do you need help with?

slender mountain
#

hi

#

I am trying to test my connect account registration for US users in test mode

#

here is my account id :

#

acct_1IiCUAChxxVYgbnw

#

please look at my last registered testing us account log

#

the log doesn't have any error message but there is no new testing connect account id being generated.

#

please shed some lights

frank pier
#

I'm sorry I don't understand your question at all. What's not working?

slender mountain
#

I am trying to test

#

let US customers can register as connected ID with routing number and account number

#

in test mode

#

maybe you just go to check my account log and you will understand instantly

#

there is no error message, but also there is no connect ID being generated

#

All information that I used are from your doc

#

fake id for testing

frank pier
#

I'm really sorry, I just have no idea what you are asking

#

I see you have an account, I see you enabled Connect, you can totally use Connect

slender mountain
#

could you go take a look at my log

frank pier
#

you say to "check your account" with no information on what to check. What does "look at my log" mean, log of what?

slender mountain
#

yes, i need to let users register as connect id

#

developer logs

#

logs logs logs

frank pier
#

And what should I look for? If you have a specific request that is failing, it might be easier to
1/ Share the request id
2/ Share the code
3/ Share the error message

slender mountain
#

i feel sorry too that I have to repeatedly saying the same thing

#

that is exactly my question. there is no error mesaage provide by stripe

#

but

#

the testing registration is not successful

#

what should i do

#

i have totally no clue

frank pier
#

What does "the testing registration is not successful" means?
Please can you try and take a little step back and explain in details what you are trying to do, which exact documentation page you are following, which exact code is failing, etc.?
Right now you shared a pictures of logs of Token creation that are working without much context

slender mountain
#

The infomation that I used are all from this page, i believe you can see from my log already

#

being more specific, I am using this specific testing account number and routing number to register a connect ID

frank pier
#

Okay, so what's not working exactly? I know you keep saying I should "look" but I can't really just read logs and understand everything you're doing unfortunately, especially without any information about your flow and what doc you are following.
I'm sorry, I am trying to help but you are not yet giving me much, you haven't shared any code, you haven't explained how you integration Connect, what you are expecting to work and what isn't work
From parsing your logs you seem to
1/ Call the Create Account API to create a Custom account
2/ Call the Create Token API to tokenize bank account details information
Both requests work, and then you don't yet seem to do anything with the token from Step 2

slender mountain
#

hold on

#

let me give you my code

#

app.post('/register', async (req, res) => {
const {
uid,
firstname,
lastname,
dobYear,
dobMonth,
dobDay,
address,
city,
province,
postalCode,
accountNumber,
transitNumber,
institutionNumber,
routingNumber,
iban,
currency,
country,
email,
phone,
ssn_last_4,
}: {
uid: string,
firstname: string,
lastname: string,
dobYear: number,
dobMonth: number,
dobDay: number,
address: string,
city: string,
province: string,
postalCode: string,
accountNumber: string,
transitNumber: string,
institutionNumber: string,
routingNumber: string,
iban: string,
currency: string,
country: string,
email: string,
phone: string,
ssn_last_4: string,
} = req.body;

#

let bankAccountParams: Stripe.TokenCreateParams.BankAccount = {
account_number: "",
country: country,
currency: currency,
account_holder_type: 'individual',
account_holder_name: ${firstname} ${lastname},
}

if (iban != null && iban != '') {
// Europe account with IBAN
bankAccountParams['account_number'] = iban;
console.log('if iban!=null :');
console.log(bankAccountParams);
} else if (country.toLowerCase() == 'us') {
// US account
bankAccountParams['account_number'] = accountNumber;
bankAccountParams['routing_number'] = routingNumber;

console.log('if country == us:');
console.log(bankAccountParams);

} else if (country.toLowerCase() == 'ca') {
// CA account
bankAccountParams['account_number'] = accountNumber;
bankAccountParams['routing_number'] = ${transitNumber}${institutionNumber};

console.log('if country == ca:');
console.log(bankAccountParams);

} else {
console.log(โŒ Unsupported country [${country}]);
res.send({ error: 'Unsupported Country' });
return;
}

frank pier
slender mountain
#

if (iban != null && iban != '') {
// Europe account with IBAN
bankAccountParams['account_number'] = iban;
console.log('if iban!=null :');
console.log(bankAccountParams);
} else if (country.toLowerCase() == 'us') {
// US account
bankAccountParams['account_number'] = accountNumber;
bankAccountParams['routing_number'] = routingNumber;

console.log('if country == us:');
console.log(bankAccountParams);

} else if (country.toLowerCase() == 'ca') {
// CA account
bankAccountParams['account_number'] = accountNumber;
bankAccountParams['routing_number'] = ${transitNumber}${institutionNumber};

console.log('if country == ca:');
console.log(bankAccountParams);

} else {
console.log(โŒ Unsupported country [${country}]);
res.send({ error: 'Unsupported Country' });
return;
}

#

sorry wrong message

#

here

#

try {
token = await stripe.tokens.create(tokenCreateParams);
} catch (err) {
res.send({ error: err });
console.log('โŒ Error creating token in chef registration.');
console.log(err);
return;
}
console.log('Created bank account', token);

if (!token) {
res.send({
error: 'null token',
});
console.log('โŒ null token');
return;
}

#

is this last piece using token?

#

i believe we used the generated token

frank pier
#

no that code isn't doing anything

#

it's still just creating a token and then some logs, that's it

slender mountain
#

this piece?

frank pier
#

ah so you do
1/ Token creation
2/ Account creation
in the end

#

That's what I am trying to grasp and asking you, that's the flow I am trying to understand about waht you (the developer writing all the code) are doing

#

so what's the problem?

slender mountain
#

emmmm

#

we think it's not our code issue

#

but we don't know why there is no connect ID generated?

#

and stripe log doesn't provide us error

frank pier
#

I'm sorry but "no connect ID" doesn't mean something specific in our API so I'm lost
But ultimately your code is creating connected accounts already.

slender mountain
#

nonono

#

this is a canadian connect ID

#

we have no problem to create Canada connect ID

#

We are trying to create with US routing number and account number, but we cannot , or stripe doesn't

#

We added all the required US info , cause register a US connect ID need more personal info such as SSN last 4, and the log shows no error, but no US connect ID has been generated. Is this a clear question to you now? or you need me to explain more?

frank pier
#

It's starting to be clearer, but it's far from enough unfortunately

slender mountain
#

1/11/22, 4:14:16 PM

frank pier
#

You seem to have so much useful information but only share a small part of it

slender mountain
#

you just picked a succesful one

frank pier
#

what is that date ๐Ÿ˜…

slender mountain
#

log

#

log

#

log

#

check this one

frank pier
#

okay let's pause

slender mountain
#

you picked a succesful one doesn't realted to our question

frank pier
#

Please provide actionable debugging information for me to jhelp. You can't just say "log log log" and a random date and zero info

slender mountain
#

check any other one please

frank pier
#

you had two account creations in 2022. So it's not like there are dozens to triage

slender mountain
#

can you just click anyone other than the one you looked at

frank pier
#

I did

slender mountain
#

ok, could you please look at the most recent one

#

the one I just tried

frank pier
slender mountain
#

please look at the most recent one, the last one

#

this one has clear error message

#

we know the problem is postal code

frank pier
#

There's literally no account creation beyond those 2. I don't understand why it's like we don't speak to each other ๐Ÿ˜ฆ

slender mountain
#

the one I just created, at time
1/11/22, 4:14:16 PM

frank pier
#

The 2 most recent examples are literally you creating a Bank Account Token, successfully, and nothing else

slender mountain
#

ok hold on

frank pier
#

can you please try to share actionable information like the exact request id instead of a time?

slender mountain
#

can't you see these ones?

#

i am but you seem cannot catch it

#

i don't understand why you cannot understand the log time and say it's not useful infomation, isn't log used for time tracking?

frank pier
#

https://dashboard.stripe.com/test/logs/req_ZwDTUI5b4QMBth ultimately this is a Token creation, it is not an account creation. That's what I tried to explain earlier, there are 2 separate steps to creating an account in your code
1/ Creating a Token for the bank account details
2/ Creating an Account with a lot of info about the account + the token from step 1

#

right now it seems your code does step 1, and stops

slender mountain
#

could you also be specific aobut what is actionable mean

#

this is my worst experience so far with stripe

#

yes, thank you

#

this one

#

there is no error

#

but, there is no connect ID being generated, why?,

#

this is my question

#

I believe I am not good at coding as you , but , I believe you should be able to understand our code has not problem and we don't get enough info from stripe to debug.

#

stop using actionable vague words, use specific words, such us show me your code!!!

frank pier
#

Your code is creating a token. You get btok_123. Then your code is creating an Account. That code is either erroring or not running. That's the part you need to debug

slender mountain
#

I need stripe to provide info why this "no error" log try cannot generate a connect id

#

ok, but

#

why we still can go through the canada connect ID generation

#

debug what?

#

if we cannot generate a connect ID, shoudn't there be an issue to response?

#

say, postal code error, then we debug postal code

frank pier
#

I don't know, right now I have almost no info and I'm trying to piece things together as I go from what you give me. I know you are frustrated but you seem really disconnected from your code and the first step is to go back to the code itself and add clear logs to each step. You should then be able to add logs before and after the bank account token creation. And then before and after the account creation, to understand where your code suddenly stops

slender mountain
#

now, what is the error

#

ok

#

I will add logs at those place to try and see

#

probably , after that try, I will still need to get back to you