#tv-stripeapps
1 messages · Page 1 of 1 (latest)
What data do you need? There's multiple events to consider
Payment intent succeed should suffice. I’ll just need the transaction related data.
What data
The event object should contain a lot of info
What in particular is it missing?
So you don't receive the event?
No
Can you share the event id you expected to receive?
Here’s a conversation my buddy had with Stripe team a while back
If we were to create the app using webhook, we’ll need all the data we get when we use payment intent succeed webhook.
Since we’re creating this as a Stripe app, I still need all those information
At basic the transaction information and customer contact information.
There is a lot of confusion here, we don’t want anything to do with connect account.
We only want the data after a successful payment being processed
I handle many users at once
I don't have time to read past threads
Please summarize the issue and question succinctly so I can help
I'm talking to many people right now
Okay what exactly do you need
All I want is when a user has installed the app, I should receive the data of successful payments by webhook or events
@sly cedar
Okay
Yep and you should listen to payment_intent.succeeded
You told me you never receive this event though
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 the test payment I made to see if it would send me the data
Yeah I mean I see it was successfully delivered to several endpoints. See: https://dashboard.stripe.com/test/events/evt_3OmwZzADJEWOZSTn00usELA4
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
One moment
Okay, those are being sent to some other Stripe connect apps
Those aren't the webhooks I added.
What's the endpoint id of the webhook endpoint you added?
That's the only one on the account configured to listen to payment_intent.succeeded
No the id
we_
I don't see that endpoint added anywhere
Oh I do actually
You set it as a connect webhook on acct_14is1hADJEWOZSTn
You need to either set it as a connect webhook on one of the connected platforms
Or you need to set it as a direct webhook on acct_14is1hADJEWOZSTn
Because right now it's only set up to listen to connect events on acct_14is1hADJEWOZSTn
So how would I do that?
Okay
You selected connect events
No same event
Issue is you selected listen to connect events instead of platform events
Just to confirm, which account do you have dashboard access to?
Which acct_
I think there is a confusion here
I’m not making this app for myself
But as a SaaS for others to use
So I don’t think platform events will help
No the issue is you created a connect webhook endpoint on the connect account
Either create a connect webhook endpoint on the platform
Or a direct endpoint on the connect account
Overall you seem to be doing things weirdly
We don't generally recommend creating webhook endpoints on the connect account directly, but that's what you're currently doing
We recommend handling this via the platform
That's why you never received the event
When a user installs the app, I want to add webhook to their account so I can listen to payment intent succeed events to process the data from it in our backend server
Does doing it via platform give me access to a different user’s payment events too?
It would give you access to all connect account events for all connected accounts, yes
Is that not desired?
Are users that install the app on Stripe dashboard are considered connect accounts?
But if you're going to create the webhook endpoint direclty on the connect account, you must configure it to listen to direct events not connect events because since the webhook endpoint itself will exist on the connect account, then to receive events on that account you'll need to listen to direct events (not connect events). Listening to connect events would listen to events created on that connect accounts' connected accounts
No
Again, which account do you have dashboard access to?
That will help me resolve your issue
Because acct_14is1hADJEWOZSTn has 3 platforms connected to it
This is my use case - When a user installs the app, I want to add webhook to their account so I can listen to payment intent succeed events to process the data from it in our backend server
Oh this is literally a stripe app
I thought this was a webapp
That changes things
The n-frames account is yours, right?
But to solve your original issue, you just need to create a platform webhook endpoint on acct_14is1hADJEWOZSTn
Because the payment intent you shared with me was directly created on acct_14is1hADJEWOZSTn
We cover this in the docs here: https://docs.stripe.com/connect/webhooks#connect-webhooks
N-frames is my account
You created https://reviews.stage.n-framescorp.com/listen.php as a connect endpoint
On n-frames
However, the payment intent you shared was directly created on n-frames
So it would never have been delivered to the above endpoint
You would have needed to create it as an account webhook endpoint
That's the issue with pi_3OmwZzADJEWOZSTn0pvKfluM
Okay
So how do I solve the issue from a stripe app perspective?
I want to listen to payment intent succeed events of users that install the app
@sly cedar please forget old payment id and old webhook. Please look at the problem that Tony is mentioning.
You're already doing that
You created https://reviews.stage.n-framescorp.com/listen.php as a connect endpoint
(assuming n-frames is your stripe app account)
Covered in this section: https://docs.stripe.com/stripe-apps/build-backend?public-private=public#receive-events
i have another account: acct_1DtxSlFurpFPl37x
and this account installed my Stripe app.
what the type is true?
I don't understand the question
The problems keep recurring and there is no final decision, what is right for our problem.
We have followed the steps outlined in the document, but we still can't get it to work as outlined.
We have been trying for past 2 weeks with no help or success at all.
What exactly needs to be done to make the Stripe App work as required / outlined above for other stripe users to install and use it?
Hey there 👋 jumping in as my teammate needs to step away soon. I've skimmed the conversation, but may still need to go back and pull more context from it. It sounds like the concern here is not with your app getting installed and used, but rather how you will be notified of actions being performed by accounts with your app installed. Does it sound like I have that right?
And this is the ID of your Stripe Account: acct_14is1hADJEWOZSTn?
And this is the ID of an account where you've installed your app: acct_1DtxSlFurpFPl37x?
yes
now when there is a payment to account acct_1DtxSlFurpFPl37x, the payment's data will be collected and send it to my backend.
Gotcha, the Connect Webhook on acct_14is1hADJEWOZSTn is listening for payment_intent.succeeded Events, but so far acct_1DtxSlFurpFPl37x has only generated payment_intent.created Events. Based on what I'm seeing so far it seems expected to not have received any Events from the account that installed the app. Can you progress one of those intents to a succeeded state?
I'm wondering, how to change the status of this payment to succeed?
You provide the necessary payment method details and confirm the intent.
If you aren't familiar with the overall process for processing a payment, that is discussed in more detail here:
https://docs.stripe.com/payments/accept-a-payment
You can use the test cards listed here to help conduct that testing:
https://docs.stripe.com/testing
pi_3On0xJFurpFPl37x187IRdtu the payment id i made is succeed
event id evt_3On0xJFurpFPl37x1W0N7mTI
Thank you!
Taking a closer look I see that the app that is installed in acct_1DtxSlFurpFPl37x does not appear to belong to acct_14is1hADJEWOZSTn. So I believe I was looking at the webhook endpoints for the wrong account.
The account that app seems to be owned by does not currenlty have a Connect webhook endpoint configured.
com.n-frames.reviews can you check the Stripe apps is which account does it belong to?
i push the app by acct_14is1hADJEWOZSTn this account
Hm, I'm not sure what's going on here. Let me see if I can find a teammate who can take a closer look at this while I tend to other threads.
okay, please
@real portal checking in
Teammate is still digging
Okay
👋 hopping in here since toby had to head out - we think something went wrong with the install. Can you do the following:
- Configure your webhook endpoint to also listen for
account.application.authorized - Create a fresh Stripe Account
- Install the Stripe App using the External Testing doc
tv-stripeapps
Okay, one moment.
@sullen sandal off topic question.. are all stripe apps supposed to have an original account which owns the app?
I think so, but let me check
added "account.application.authorized" event to the webhook
the account acct_1DtxSlFurpFPl37x is fresh
now i'm installing again app
Yup, stripe apps would have an account that's tied to it (since we require you to have the account be active before it's published to the marketplace)
Not to mention publishing it to the market, I need to get its functions working first.
i'm re-install the Stripe App using Exterrnal Testing, but webhook still not get anything.
Hi 👋
I am stepping in as my colleague needs to go
Did you change your Connect webhook to listen for the event account.application.authorized? This event will fire when a Stripe Acount successfully installs your app
yes
Okay and can you share the Account ID for the account that installed the app?
acct_1DtxSlFurpFPl37x
Thanks! Taking a look
Wait this is the same account ID
This account has a Connect Extension that was installed in January of 2019
We recommended creating a brand new account
@blissful scarab does that mean the Stripe app we create wont work on an account that has connect enabled?
If you mean an account that already has a Connect Extension installed, I'm not sure. That is why I'm asking you to test on a brand new account
Okay
Newly account acct_1On3Z7JBUz8DnSpf
@blissful scarab the webhook still not receive data when i install Stripe app in new account
account.application.authorized for add this in webhook, what permission i need to add in manifest file?
this is just need permission event_read
i added this
Okay I am seeing the app installed on the account
But there are no events that fired for this account.
what is happening?
Can you check the app "com.n-frames.reviews", which account do belong to?
i'm upload this app by "acct_14is1hADJEWOZSTn"
I see the app being uploaded. Unfortunately I cannot see why this event is not firing.
I'm sorry but I think this will require more thorough investigation than I can provide here. I recommend you write in to Support and provide the details of what the issue is, along with the account IDS for
- The account ID for the account that developed the app
- The app ID
- The account ID for where the app was installed (the most recent one).
We have contacted support with no actual help
I would recommend repeating this process with all the details you shared here as well as that you were discussing this with Stripe devs on Discord.