#b33fb0n3_api
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1408433631633997906
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- b33fb0n3_best-practices, 1 day ago, 30 messages
hi there!
are you getting that error when using the Stripe API? if so, can you share the request ID (req_xxx)?
Hey! Yes, the request was made with the stripe api. I used my secret key of the live version, but when I look in my „protocols“ there are no requests. Does a timestamp help?
you should be able to find the request ID here: https://dashboard.stripe.com/test/logs
There are no requests. I added the „stripeAccount“ (and the id) to the nodejs stripe init of stripe itself.
I just checked the logs of the other account, and there are no logs as well. The exact timestamp is: 1755866918548
Hmm I'm a bit surprised you don't get a request ID -- how are you submitting the request?
but to address the real question, the pattern you're using is "direct charges" and yes it requires the account to be connected to yours as a platform
That’s a very good point. Yesterday I asked if I should use the stripe connect flow or the „add to account“-flow (my customer adds my stripe account as „developer“) (details: https://discord.com/channels/841573134531821608/1407754134257668186)
The conclusion of the thread: when I don’t want to charge my customer based on transactions, then I should use the „add to account“-flow
In this case I don’t want to charge my customer based on transactions. I just want to create a payment intent in live mode for his account (and of course some more stuff with payment intents).
I am confused as well, that there is no request in his production logs, nor in my production logs… I also removed all filters, but no logs about that. I just receive the error message from stripe…
It's possible that your account is not even configured as a platform, so your request might be getting rejected as invalid for trying to use the Stripe-Account header when you aren't able to do that.
If you're trying to manage payments as a platform for that account, you need to set up Connect and the connected account arrangement
If you just want to control the account directly, you can get API key for it as a developer
If they've added you as a developer, you can access the API keys section of the dashboard
Yea, I assume that’s the case. The only connection, that those two stripe accounts currently have is, that he added my stripe account as developer. Nothing more.
Do you mean by using an API keys that he should give me a „restricted key“? Beginning with „rk_live_…“?
What should I do when? Should I connect with him via stripe connect or just control his account? I just want to make payments. But on the other hand I don’t want to charge him based on transactions
Do you mean by using an API keys that he should give me a „restricted key“? Beginning with „rklive…“?
If you have developer access, you should be able to retrieve/create keys yourself: https://dashboard.stripe.com/test/apikeys
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
This is about the business relationship between you.
If you operate a service that facilitates payments for other accounts, you should be a platform and use connected account flows.
If you're just helping run this account directly, then direct access via the dashboard and using the API keys probably makes sense.
Yes, I am able to
What if I neither help to manage payments with other accounts, nor do I help him to run his account?
He tried to find a developer that integrates stripe terminal for him and I wrote the integration for him. He paid me then. No managing payments for others, nor helping him to use his account… :/
I'm confused about what you're trying to do then
If you're trying to get this account online/deployed somewhere, then it sounds like you are helping run it 😬
Otherwise, you could set up the code using eg environment variables and tell them where to put the keys themselves on whatever hosting provider
Yea, he created his account by himself. He also accept other kind of payments via other platforms. So he does nearly everything by himself. Except the terminal integration, as that needs coding integration.
I then did the coding integration. For my account everything works like expected and now I wanted to go in production (using his account to make the payments). But the the error came..
Now there are 4 ways for me to connect:
- His Secrets: he send me his account secret and public key, so I can add them into the code, so my code can create payment intents for him.
- He add me to his account: As experienced now this seems to be more on how to manage the account via the dashboard. Not really the api.
- I get an API key: this seems to be pretty easy and I guess it’s just like a secret key to the account.. but where is the public key lol
- Stripe connect: he connects his account to mine via stripe connect and I use my own secret and public key to create payments with his account
Wow, that are many ways and I don’t even know which one I should use 🙈
His Secrets: he send me his account secret and public key, so I can add them into the code, so my code can create payment intents for him.
He add me to his account: As experienced now this seems to be more on how to manage the account via the dashboard. Not really the api.
I get an API key: this seems to be pretty easy and I guess it’s just like a secret key to the account.. but where is the public key lol
I think the first 3 are all the same, effectively, it's just different ways of you getting api keys for the account
Like i said, with developer access you should already be able to do that, i don't think they need to give you anything
Let's put this another way: you should only use the platform/connect approach if you expect to be maintaining this permanently, becuase then your platform is associated with the payments you're facilitating.
If this is something you're building for someone else for hire then "walking away", then don't use connect
It should be entirely within their account with their API keys and they are responsible for maintaining it later (hiring you or another developer again, if needed)
Does that help clarify for you?
Ohh that’s smart! Yea, that helps a lot.
Just to clarify: when I use stripe connect, the customer will see that the payments are made with my Plattform account (not with the stripe account of my customer)
Then I guess an API Key (RK_LIVE) would be the best option here. Where do I get the public key from? Or is that just the public key of his account
Just to clarify: when I use stripe connect, the customer will see that the payments are made with my Plattform account (not with the stripe account of my customer)
In some contexts, yes. Direct charge flows are mostly "white label" but there are places where the platform is surfaced.
Then I guess an API Key (RK_LIVE) would be the best option here. Where do I get the public key from? Or is that just the public key of his account
From what you've explained, i agree it likely is meant to just be this account with no platform operated by you. The secret key (for the server) and the publishable key (for the web or mobile client) are both available in that API key section.
Ok, that sounds great. Thanks a lot! Your explanations are waaay more clear and better than inside my last thread (https://discord.com/channels/841573134531821608/1407754134257668186) Thanks! 🙏
NP - happy to help 🙂