#praveen_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/1325752476393275414
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
what do you mean by "Is Stripe.apiKey thread safe"? can you share a specidic example?
We are initializing stripe by setting Stripe.apiKey with stripe secret key.
How to handle this when there are multiple requests coming to our server with different currency and each currency corresponds to different stripe account?
what do you mean by
there are multiple requests coming to our server
are you talking about webhook events?
again, can you share a concrete example of the issue?
Let me make sure one thing.
How to initialize stripe on backend? initialize means connect to our stripe account.
which Stripe SDK are you using?
example shows setting apiKey on Stripe https://github.com/stripe-samples/checkout-one-time-payments/blob/main/server/java/src/main/java/com/stripe/sample/Server.java#L46
Java
you can see an example here: https://github.com/stripe/stripe-java?tab=readme-ov-file#usage