#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/1478929662410490000
📝 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, 8 hours ago, 31 messages
- jackey_api, 15 hours ago, 7 messages
//stripe app是不是也可以用这种方式来进行授权的?
https://docs.stripe.com/stripe-apps/api-authentication/oauth
🗣️ Sorry, English only
We can only provide help in English on Discord, but you can contact Stripe support for help in other languages. 🌐 Translate this message
Can the Stripe app also be authorized in this way?
//stripe app是不是也可以用这种方式来进行授权的?
Can the Stripe app also be authorized in this way?
https://docs.stripe.com/stripe-apps/api-authentication/oauth
Hello. Please reply if you see this.
???
Thank you for waiting!
The document you shared is using OAuth for other Stripe accounts to grant the access to your app
If you're referring to getting authorisation for other Stripe accounts grant the access to your Stripe App, then this can be used
I need to use my platform key along with the account ID to access Stripe's API. Do I have to register as a Connect platform account first?
You should create a standard Stripe account first. You will be able to develop Stripe Apps for other accounts to use. There shouldn't be a need to register as a Connect platform.
This is the guide to start Stripe App development: https://docs.stripe.com/stripe-apps/create-app
Can you share the request ID (req_xxx) of the error? You should be able to find it in the response headers
Could you please tell me what the request ID is? Is it possible to show me a screenshot?
In your second screenshot of the response, there is a "Headers" tab. You should be able to find the request-id from there
Is this it?
The screenshot is the request headers, not response headers.
Just as a reminder, you should never share your secret API keys over an insecure medium such as chat or email, regardless of whether it's a test or live mode key. I strongly suggest you roll your secret key immediately as the one you sent is now considered compromised: https://dashboard.stripe.com/account/apikeys. I'll be deleting your screenshots
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You should be able to find similar "Headers" tab in the response section
This is the response message that has come back.
⛔️ Stripe developers have stepped away for a short while
Please leave your questions here, and we’ll respond as soon as we're back! If you need help urgently, you can contact Stripe support for help.
??
hello! do you have any questions that I can help with?
Can the Stripe app also be authorized in this way?
//stripe app是不是也可以用这种方式来进行授权的?
sorry, I'm a bit confused. This is the same question that you asked at the beginning of this thread, and I believe river already answered that. Is there something about her answer that you need clarification on?
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. How can I authorize my backend system to be able to access the Stripe API interfaces?
I need to publish my self-developed Stripe app on the Stripe Apps Marketplace platform. My Stripe app needs to implement the functionality of calling backend APIs using the Java language. Moreover, in the processing logic of the backend, it is necessary to access the Stripe API to query PaymentIntent, charges, etc. How can I authorize my backend system to be able to access the Stripe API interfaces?
https://docs.stripe.com/connect/oauth-reference
Can I use this connection authorization?
I think this is what you're looking for? https://docs.stripe.com/stripe-apps/build-backend#using-stripe-apis
{
"error": {
"message": "The provided key 'sk_test_************************************************************************************K4Sf' does not have access to account '"acct_1TFLg"' (or that account does not exist). Application access may have been revoked.",
"type": "invalid_request_error",
"code": "account_invalid",
"doc_url": "https://stripe.com/docs/error-codes/account-invalid"
}
}
这是什么问题呢?
can you share that connected account id? i.e. the full ID of the acct_
Hello, did you see it?
It looks like acct_1T6ob1RTba50qFLg isn't currently connected to any platform or application. Could you try connecting it to the platform or application whose secret key you're using? Once that connection is in place, you should be able to access it using the Stripe-Account header.
yes
Just to make sure I'm on the same page, could you clarify what you mean by "yes"? Were you confirming that you've already connected the account to your platform, or that you'll go ahead and do so?
I need to use my account key along with the account ID to access the Stripe API interface.
Just to make sure we get this sorted correctly — there are two different scenarios here:
If you're accessing your own account's API directly: You only need your own secret API key (sk_live_... or sk_test_...). You don't need to pass the Stripe-Account header or your account ID — your API key already identifies your account. You'd simply include your secret key.
If you're using a platform/application's secret key to access account acct_1T6ob1RTba50qFLg via Connect: The account needs to be connected to that platform first. Once connected, you'd use the platform's secret key in the Authorization header along with the Stripe-Account header set to acct_1T6ob1RTba50qFLg.
Which of the above two scenarios are you trying to achieve?
I need this latter solution. We have developed our own Stripe app and uploaded it to the Stripe Apps Marketplace. When users download and install it, they can use our services. Our Stripe app needs to be able to replace the user and call the Stripe API interface.
alright, so the reason you're currently unable to access the API on behalf of account acct_1T6ob1RTba50qFLg is that this account is not currently connected to any platform or app. Until the account owner installs your app or establishes a connection, your app won't have the authorization to make API calls on their behalf.
Can we automatically obtain the necessary permissions when the user installs our Stripe app? But actually, it has already been downloaded and installed now.
actually, it has already been downloaded and installed now. - where are you seeing that it has been downloaded and installed by acct_1T6ob1RTba50qFLg?
Can we first use the API interface on our backend to register when downloading and installing the Stripe app for the first time? Then, when uninstalling, I also call the API interface on my end because I need to perform some scheduled task logic processing for users who have installed our Stripe app.
what do you mean by "register"?
I need to first store the Account id in my backend database because I will later use scheduled tasks to call the Stripe API interface.
Registering users through the API interface in my backend means first storing the Account ID in the backend database, so that it can be used by subsequent scheduled tasks when calling the Stripe API. Didn't you say that it's possible to use the key along with the Account ID instead of directly accessing the Stripe API interface for users?
is your question how can you be notified of the connected account ID when the customer downloads and installs your Stripe app?
I think this is what you're looking for? https://docs.stripe.com/stripe-apps/events#app-events
you will want to set up a webhook endpoint to be able to listen for those events : https://docs.stripe.com/webhooks/quickstart
Could you please refrain from leaving for now? I might have some more questions for you later. Thank you!
First, I will carefully read through the document.
The thread will be closed after some time if there's no activity. If that happens, you can ask another question
Does this still require the cooperation of the Stripe app frontend? Is it still only necessary for me to implement the backend?
Hello, are you there?
Sorry, I don't understand this sentence :
Does this still require the cooperation of the Stripe app frontend? Is it still only necessary for me to implement the backend?
Is it necessary to implement this function together with the front end?
Hey! Taking over for my colleague. Let me catch up.
This is backend feature (webhook listener)
Could you please reply to the previous question?
Sorry, what question exactly ?
This is backend feature (webhook listener)
Could you provide me with some sample code in Java?
Yes sure, here is a quickstart:
https://docs.stripe.com/webhooks/quickstart?lang=java
yes
Is it necessary to download and install the CLI?
Hello. Please reply if you see this message. Thank you.
The CLI is for local tests, in order to forward the events to your local endpoint
Can we also test by directly using Stripe for the operation?
Stripe CLI is stripe, it's just a way to forward events to your localhost endpoint without creating a web domain and have it accessible via internet
know
Once you deploy your backend and becomes accessible via network, you create a webhook endpoint and then Stripe will sends directly the events to your endpoint
I forgot to tell you about a detail - can this webhook pass parameters?
For example, after the user completes the download and installation process, I need to immediately trigger a webhook for registering the user. I also need to pass the current user's Stripe Account ID to my backend system.
You can review the previous chat records we had.
The event payload sent to the webhook will contain an account property you can use for exactly that
How can I obtain this object? Then, where is the stripeAccountId located? Could you please take a screenshot and show it to me?
It'll be in the event payload as described. Do you have a webhook endpoint setup to receive events yet?
Which event type should be used when triggering the installation?