#zeke_unexpected
1 messages Β· Page 1 of 1 (latest)
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.
- zeke_error, 7 hours ago, 51 messages
- zeke_ios-paymentsheet, 10 hours ago, 85 messages
- zeke_best-practices, 20 hours ago, 28 messages
- zeke_best-practices, 1 day ago, 16 messages
- zeke_best-practices, 1 day ago, 30 messages
- zeke_api, 1 day ago, 97 messages
and 1 more
π 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.
Hello π , can you recap where you left off with Orakaro?
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?
Gotcha, that piece of code looks like it should create an express account properly. Have you tried running it in test mode?
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?
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
Ok thanks
Ok ive added it to my server.ts whats the next step should I test or add diffrent code
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