#jackey_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/1478764197658493041
📝 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.
- jackey_api, 4 hours ago, 7 messages
What I mean is, after the current user logs into their Stripe account and downloads and installs our Stripe app from the Stripe Apps Marketplace, how can we enable the current user to authorize our Stripe app to make calls to the Stripe API interfaces on their behalf, for example, to call this API: https://docs.stripe.com/api/payment_intents/search?lang=curl.
I need to publish my self-developed Stripe app on the Stripe Apps Marketplace platform. My Stripe app needs to call the backend interface, and the processing logic of the backend needs to access the Stripe API to query PaymentIntent, charges, etc. For this Stripe app, how can I authorize my backend system to be able to access the Stripe API interfaces?
Hello, could you answer me?
Hello, I am taking a look 🙂
The guide we previously shared with you explains how to make requests using your API key and the user's account ID. Please see this section: https://docs.stripe.com/stripe-apps/build-backend#authenticate-requests
I now know how to call the Stripe API, but how do I get the logged-in Stripe users to authorize my Stripe app?
Hello, please reply if you can. I'm quite anxious.
I am here, sorry for the delay. I am responding to multiple threads at once.
Can you please explain what you are currently trying that doesn't work?
Have you followed all the steps in this section of our guide? https://docs.stripe.com/stripe-apps/build-backend#before-you-begin This explains how to implement a signature-based authentication flow which I believe is what you're asking about.
我现在还不知道怎么让登录stripe的用户授权给我的stripe app 呢。
I still don't know how to get the users who log in to Stripe to authorize my Stripe app.
I don't believe users need to do anything other than install your app from the Stripe App Marketplace. Then, your app performs the signature-based authentication and is able to make API requests.
So you mean that as long as I download and install the default version, it has already authorized my Stripe app for me? Then, when the user clicks the button in my Stripe app, I can use the key and account ID to call the Stripe API, right?
Yep after they've connected, you should be able to just authenticate this this method to make calls for them https://docs.stripe.com/stripe-apps/build-backend#using-stripe-apis
I'm the backend. If I call the API section of https://docs.stripe.com/api/payment_intents, is it sufficient to just use my own account key along with the authorized user's stripe-account-id to make the call?
Yes
I am the one making the backend call to the Stripe API. It is executed by my side. I provided the API interface to the front end of the Stripe app. When the Stripe app front end calls my API interface, it only needs to obtain and pass the authorized user's Stripe-account-id to me. Then, using my own account's key along with the authorized user's Stripe-account-id, I can call the Stripe API interface, right? So, when the front end calls my API, do they need to sign first? After my backend receives the request, it will verify the signature and obtain the Stripe-account-id for subsequent operations.
Hello, please reply if you can. I'm in a hurry. Thank you.
It looks like this doc section speaks to that:
https://docs.stripe.com/stripe-apps/build-backend#send-a-signed-request
We recommend that on the frontend you call fetchStripeSignature which gives you a stripe signature that you can pass to the backend
I am responding as quickly as I can, but making sure this is accurrate can take time.
How does the front-end of that Stripe app obtain the Stripe-account-id?
It gets it from the userContext which is passed to your App
Is this it?
Yes, that is the userContext object that I mentioned