#kencale-question
1 messages ยท Page 1 of 1 (latest)
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
I'm sorry I don't understand your question at all. What's not working?
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
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
could you go take a look at my log
you say to "check your account" with no information on what to check. What does "look at my log" mean, log of what?
yes, i need to let users register as connect id
developer logs
logs logs logs
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
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
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
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
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
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;
}
Okay so that's a lot of code but it boils down to create a bank account Token from https://stripe.com/docs/api/tokens/create_bank_account right? But you aren't doing anything with that token after
Are you trying to save the bank account details for that new connected account? If so you have to use that Token id (btok_123) to add the external account to the Account you just created before via https://stripe.com/docs/api/external_account_bank_accounts/create
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
no that code isn't doing anything
it's still just creating a token and then some logs, that's it
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?
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
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.
https://dashboard.stripe.com/test/logs/req_mUZnHh8lixRoEW this is a request that successfully created a connected account in your platform for example
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?
It's starting to be clearer, but it's far from enough unfortunately
1/11/22, 4:14:16 PM
You seem to have so much useful information but only share a small part of it
you just picked a succesful one
what is that date ๐
okay let's pause
you picked a succesful one doesn't realted to our question
Please provide actionable debugging information for me to jhelp. You can't just say "log log log" and a random date and zero info
check any other one please
you had two account creations in 2022. So it's not like there are dozens to triage
can you just click anyone other than the one you looked at
I did
https://dashboard.stripe.com/test/logs/req_63xC2wUFkKJYOh is another one, the second only one. Failed with a clear error. Also Canada
please look at the most recent one, the last one
this one has clear error message
we know the problem is postal code
There's literally no account creation beyond those 2. I don't understand why it's like we don't speak to each other ๐ฆ
the one I just created, at time
1/11/22, 4:14:16 PM
The 2 most recent examples are literally you creating a Bank Account Token, successfully, and nothing else
can you please try to share actionable information like the exact request id instead of a time?
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?
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
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!!!
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
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
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