#fm0

1 messages ยท Page 1 of 1 (latest)

marble dragonBOT
magic sleet
#

Does the terminal where you run stripe listen produce something?

crimson sail
#

yep

#
2023-06-20 22:13:33   --> charge.succeeded [REDACTED]```
magic sleet
#

It should have forwarded already

#

Any chance your middleware is after some layer stopping the log?

crimson sail
#

my app seems to not be receiving anything though I think the problem is with the hop between the forwarding and my server

magic sleet
#

What happen without --skip-verify?

#

Ah wait

#

that`s forward-connect

#

That only forward Connect related event

#

you want --forward-to

crimson sail
#

you are a legend ๐Ÿ

#

worked

#

appreciate it

#

!!!

magic sleet
#

np, happy to help ๐Ÿ˜„

crimson sail
#

ok so now, have a signature error not sure how to fight this

The python exception that maps to this would be:

```stripe.error.SignatureVerificationError````

Any leads?

#

Code that sets-up stuff


event = stripe.Webhook.construct_event(
        payload, sig_header, endpoint_secret
    )
magic sleet
#

Okie are you sending with --skip-verify?

crimson sail
#

yep

#

should I remove it?

magic sleet
#

No just confirming

#

This SignatureVerificationError is a common one

#

When you do stripe listen it will output a secret, correct?

#

Did you set it into endpoint_secret?

crimson sail
#

yep, logged it temporarily and confirmed it matches what the cli says

magic sleet
#

Hmm so this webhook is for a Stripe App?

crimson sail
#

My Stripe app's main functionality is for listening to my customers webhooks on their behalf and doing actions on their behalf based on the webhooks i receive from stripe

magic sleet
#

Umm is there a Doc/guide you are following?

#

I am not sure I follow your setup, that is you seem to setup a webhook onbehalf of a merchant who uses your app

crimson sail
magic sleet
#

Thanks. So you were looking at backend-only Stripe App and came that far to have a div to setup authentication

#

But I am not sure if that could let you listen to your user webhook event on behalf of them

#

Those kind of structure only works if you are a Platform and they are Standard Connected Accounts to you, but again with limited events, not everything, and only if you create Direct Charge with them

#

Imagine you have 1000 merchants uses your app, you can't have 1000 different endpoints listen to each of their events. 1 endpoint can only listen to events of 1 account

crimson sail
#

oh

magic sleet
#

Also that 1000 is dynamic, you wouldn't know how many users of your app

crimson sail
#

i thought i can listen to 1000 merchants as long as each one has my app installed

magic sleet
#

No, each endpoint requires an endpoint secret, which is bounded to 1 account

crimson sail
#

this seems to show that I can listen for events from my customer as long as my app has the perms in my maniifest

#

stripe apps grant permission "PERMISSION_NAME" "EXPLANATION"

#

Public listing on App Marketplace

magic sleet
#

Hey you may be right! Let me confirm this a bit further with my colleague

crimson sail
#

ya np, i feel stripe apps a bit weird since they are so new

#

so not super clear what the patterns are

#

appreciate the help!!!!

magic sleet
#

So yes you can! Sorry please disregard my previous assessment. You can setup a Connect Webhook Endpoint and listen to all of your installed user events

#

That brings back the forward-connect-to parameter ๐Ÿ˜…

#

But in order to test it, you will need to trigger an event on an account which installed your app

#

stripe trigger will only trigger event on your own account

crimson sail
#

Gotcha makes sense, so is there a way to stripe trigger on a connect account?

#

also I installed my own app on my account, so this should work but we are back to square 1

#

where my server isnt getting anything

#

using stripe listen --forward-connect-to localhost:4000/stripe-webhook --skip-verify

magic sleet
#

Let's install on a different account, to avoid confusion

crimson sail
#

make a second stripe account?

magic sleet
#

yeah

#

There should be 2 accounts connected to each other

crimson sail
#

ok im lost now

#

when you say 2 accounts

#

do you mean another merchant account

#

or making an actual stripe connect account

#

im also probs gonna sleep now, so i was wondering how continueing this convo would work lol

magic sleet
#

You can come back and request to re-open a thread. Any of my colleague would be happy to continue assist you

#

and yes, you want 2 merchant Stripe Account

#

separately, one is your own account, and create one more to install your app