#jackey_api

1 messages · Page 1 of 1 (latest)

visual mistBOT
#

👋 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.

vapid badger
visual mistBOT
#

🗣️ 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

vapid badger
#

Can the Stripe app also be authorized in this way?
//stripe app是不是也可以用这种方式来进行授权的?

#

Hello. Please reply if you see this.

#

???

ruby raptor
#

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

vapid badger
#

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?

ruby raptor
#

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.

#

Can you share the request ID (req_xxx) of the error? You should be able to find it in the response headers

vapid badger
#

Could you please tell me what the request ID is? Is it possible to show me a screenshot?

ruby raptor
#

In your second screenshot of the response, there is a "Headers" tab. You should be able to find the request-id from there

vapid badger
#

Is this it?

ruby raptor
#

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

#

You should be able to find similar "Headers" tab in the response section

vapid badger
#

This is the response message that has come back.

ruby raptor
#

I've attached the screenshot about where the response header can be found

visual mistBOT
#

⛔️ 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.

vapid badger
#

??

visual mistBOT
sharp ingot
#

hello! do you have any questions that I can help with?

vapid badger
#

Can the Stripe app also be authorized in this way?
//stripe app是不是也可以用这种方式来进行授权的?

sharp ingot
#

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?

vapid badger
#

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?

sharp ingot
vapid badger
#

{
"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"
}
}

这是什么问题呢?

Review the list of error codes Stripe might return in an API response so you can handle responding to them in your integration.

sharp ingot
#

can you share that connected account id? i.e. the full ID of the acct_

vapid badger
#

Hello, did you see it?

sharp ingot
#

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.

vapid badger
#

yes

sharp ingot
#

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?

vapid badger
#

I need to use my account key along with the account ID to access the Stripe API interface.

sharp ingot
#

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?

vapid badger
#

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.

sharp ingot
#

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.

vapid badger
#

Can we automatically obtain the necessary permissions when the user installs our Stripe app? But actually, it has already been downloaded and installed now.

sharp ingot
#

actually, it has already been downloaded and installed now. - where are you seeing that it has been downloaded and installed by acct_1T6ob1RTba50qFLg?

vapid badger
#

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.

sharp ingot
#

what do you mean by "register"?

vapid badger
#

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?

sharp ingot
#

is your question how can you be notified of the connected account ID when the customer downloads and installs your Stripe app?

vapid badger
#

yes

#

My backend system needs to receive

sharp ingot
vapid badger
#

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.

sharp ingot
#

The thread will be closed after some time if there's no activity. If that happens, you can ask another question

vapid badger
#

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?

sharp ingot
#

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?

vapid badger
#

Is it necessary to implement this function together with the front end?

visual mistBOT
tender forum
#

Hey! Taking over for my colleague. Let me catch up.

tender forum
vapid badger
#

Could you please reply to the previous question?

tender forum
#

Sorry, what question exactly ?

vapid badger
#

This is backend feature (webhook listener)
Could you provide me with some sample code in Java?

tender forum
vapid badger
#

ok

#

Do I need to define an HTTP API interface to receive webhook events?

tender forum
#

yes

vapid badger
#

Is it necessary to download and install the CLI?

#

Hello. Please reply if you see this message. Thank you.

tender forum
vapid badger
#

Can we also test by directly using Stripe for the operation?

tender forum
#

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

vapid badger
#

know

visual mistBOT
tender forum
#

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

vapid badger
#

I forgot to tell you about a detail - can this webhook pass parameters?

cloud topaz
#

What do you mean by 'pass parameters'?

#

What is it you're trying to do exactly?

vapid badger
#

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.

cloud topaz
vapid badger
#

How can I obtain this object? Then, where is the stripeAccountId located? Could you please take a screenshot and show it to me?

cloud topaz
#

It'll be in the event payload as described. Do you have a webhook endpoint setup to receive events yet?

vapid badger
#

Which event type should be used when triggering the installation?