#tv-stripeapps

1 messages · Page 1 of 1 (latest)

fathom timberBOT
sly cedar
#

What data do you need? There's multiple events to consider

graceful canyon
#

Payment intent succeed should suffice. I’ll just need the transaction related data.

sly cedar
#

What data

#

The event object should contain a lot of info

#

What in particular is it missing?

graceful canyon
#

I’m no getting any

#

I have subscribed to the event, but I don’t get any data.

sly cedar
#

So you don't receive the event?

graceful canyon
#

No

sly cedar
#

Can you share the event id you expected to receive?

graceful canyon
#

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.

graceful canyon
#

We only want the data after a successful payment being processed

sly cedar
#

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

graceful canyon
#

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

sly cedar
#

Yep and you should listen to payment_intent.succeeded

#

You told me you never receive this event though

graceful canyon
sly cedar
#

And I asked for a sample event id where this happened

#

Which you didn't provide

graceful canyon
#

This is the test payment I made to see if it would send me the data

sly cedar
graceful canyon
#

One moment

#

Okay, those are being sent to some other Stripe connect apps

#

Those aren't the webhooks I added.

sly cedar
#

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

graceful canyon
#

That’s the endpoint

sly cedar
#

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

graceful canyon
#

So how would I do that?

sly cedar
#

Oh pasted wrong account id

#

fixed

graceful canyon
#

Followed the steps here

#

What kind of changes should I make in the app code?

sly cedar
#

No changes in code

#

Issue is when you created the endpoint in the dashboard

graceful canyon
#

Okay

sly cedar
#

You selected connect events

graceful canyon
#

Okay

#

What events should it be instead?

sly cedar
#

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_

graceful canyon
#

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

sly cedar
#

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

graceful canyon
#

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?

sly cedar
#

It would give you access to all connect account events for all connected accounts, yes

#

Is that not desired?

graceful canyon
#

Are users that install the app on Stripe dashboard are considered connect accounts?

sly cedar
#

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

sly cedar
#

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

graceful canyon
#

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

sly cedar
#

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

graceful canyon
#

N-frames is my account

sly cedar
#

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

graceful canyon
#

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

empty wharf
#

@sly cedar please forget old payment id and old webhook. Please look at the problem that Tony is mentioning.

sly cedar
#

You're already doing that

#

(assuming n-frames is your stripe app account)

empty wharf
#

i have another account: acct_1DtxSlFurpFPl37x
and this account installed my Stripe app.

empty wharf
sly cedar
#

I don't understand the question

empty wharf
#

The problems keep recurring and there is no final decision, what is right for our problem.

graceful canyon
#

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?

real portal
#

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?

graceful canyon
#

Yes sir

#

Specifically payments that went through successfully.

real portal
#

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?

empty wharf
#

yes

#

now when there is a payment to account acct_1DtxSlFurpFPl37x, the payment's data will be collected and send it to my backend.

real portal
#

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?

empty wharf
#

I'm wondering, how to change the status of this payment to succeed?

real portal
#

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

Securely accept payments online.

Use test cards to validate your Stripe integration without moving real money. Test a variety of international scenarios, including successful and declined payments, card errors, disputes, and bank authentication. You can also test non-card payment methods and redirects.

empty wharf
#

pi_3On0xJFurpFPl37x187IRdtu the payment id i made is succeed

#

event id evt_3On0xJFurpFPl37x1W0N7mTI

real portal
#

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.

empty wharf
#

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

real portal
#

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.

empty wharf
#

okay, please

graceful canyon
#

@real portal checking in

real portal
#

Teammate is still digging

fathom timberBOT
graceful canyon
#

Okay

sullen sandal
#

👋 hopping in here since toby had to head out - we think something went wrong with the install. Can you do the following:

  1. Configure your webhook endpoint to also listen for account.application.authorized
  2. Create a fresh Stripe Account
  3. Install the Stripe App using the External Testing doc
fathom timberBOT
#

tv-stripeapps

graceful canyon
#

Okay, one moment.

#

@sullen sandal off topic question.. are all stripe apps supposed to have an original account which owns the app?

sullen sandal
#

I think so, but let me check

empty wharf
#

the account acct_1DtxSlFurpFPl37x is fresh

#

now i'm installing again app

sullen sandal
#

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)

empty wharf
#

Not to mention publishing it to the market, I need to get its functions working first.

fathom timberBOT
empty wharf
#

i'm re-install the Stripe App using Exterrnal Testing, but webhook still not get anything.

blissful scarab
#

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

empty wharf
blissful scarab
#

Okay and can you share the Account ID for the account that installed the app?

blissful scarab
#

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

graceful canyon
#

@blissful scarab does that mean the Stripe app we create wont work on an account that has connect enabled?

blissful scarab
#

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

graceful canyon
#

Okay

empty wharf
#

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

blissful scarab
#

Okay I am seeing the app installed on the account

blissful scarab
#

But there are no events that fired for this account.

empty wharf
#

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"

blissful scarab
#

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).
graceful canyon
#

We have contacted support with no actual help

blissful scarab
#

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.