#zeke_unexpected

1 messages Β· Page 1 of 1 (latest)

surreal snowBOT
lilac sigilBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

surreal snowBOT
#

πŸ‘‹ Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

πŸ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1260607253027885156

πŸ“ Have more to share? Add details, code, screenshots, videos, etc. below.

neat current
#

Hello πŸ‘‹ , can you recap where you left off with Orakaro?

alpine grove
#

yes is it fine if I just copy and paste the msg

#

So this right here is an api
/v1/accounts
Zeke β€” Today at 12:54 AM
Or could I just paste this into my code and get an outcome

const stripe = require('stripe')('sktest');

const account = await stripe.accounts.create({
country: 'US',
email: 'jenny.rosen@example.com',
controller: {
fees: {
payer: 'application',
},
losses: {
payments: 'application',
},
stripe_dashboard: {
type: 'express',
},
},
});
It’s so confusing to me I guess

Orakaro β€” Today at 1:03 AM
Please don't paste the secret key here
sk_test_xxxx
Redact it

Zeke β€” Today at 1:04 AM
There

Orakaro β€” Today at 1:08 AM
Okie. This is node.js. What is your backend language?

neat current
#

Gotcha, that piece of code looks like it should create an express account properly. Have you tried running it in test mode?

alpine grove
#

Yes Im going to change it to standard tho!

#

Im going to test it right now. Does it need to go to my server.ts or to my paymentrouter.ts?

neat current
#

It is a server-side function. So if server.ts is the only server-side one then put it there. If both run server-side code then it can go wherever makes more sense to you

alpine grove
#

Ok thanks

#

Ok ive added it to my server.ts whats the next step should I test or add diffrent code

neat current
#

That is up to you, it is a tradeoff between moving faster and being able to track what broke if something breaks in your code after a certain amount of changes