#blockChain_engr

1 messages · Page 1 of 1 (latest)

elder skyBOT
fierce hound
#

hey

#

can you help

inland brook
#

Hi
Can you share more details please about this ?

#

What action did triggered that message and what you want to achieve ?

fierce hound
#

I am testing the webhook locallu

#

locally**

#

it gives above message

#

when I authenticate

inland brook
#

Ty to login in to your stripe test account using this command stripe login

#

or use a test secret key following stripe login --api-key sk_test_....

elder skyBOT
fierce hound
#

ok wait let me checl

#

check**

#

still the same issue

#

?

#

?

analog warren
#

be patient.

#

my guess is there is something unusual about your account, or you're using Connect and trying to use the API key of a connected account directly? Does that seem possible?

fierce hound
#

yes might be this.

#

yes I know acct_xxx of my account

#

acct_1MVwBnPFetcbDizE

analog warren
#

That is not a "real" account, it's a test mode Standard Connect account; it can't use stripe-cli directly

#

what are you really trying to do at a higher level? For example usually you'd use stripe-cli on your own main platform account, or your personal dev Stripe account; there are ways to listen to events that happen on your connected account.

fierce hound
#

how can I have stripe dev account?

analog warren
#

it's just your normal Stripe account that you create by going to stripe.com

fierce hound
#

I am trying to listen to payment_intent events.

analog warren
#

in your case for example you have this main Stripe account called 'NINJADEV' and that's the accout who's keys you should be using for stripe-cli

analog warren
fierce hound
#

yes

#

yes

analog warren
#

then you just stripe login to your main platform account

fierce hound
#

can you please tell how to look for additional data ?

analog warren
#

and then you use stripe listen --forward-connect-to= to get the Connect events happening on the connected accounts

fierce hound
#

what will be value of --forward-connect-to= ?

analog warren
#

to forward events that happen on your connected accounts, to the endpoint

fierce hound
#

like localhose:3000/webhook/... right?

analog warren
#

yes

fierce hound
#

can you please tell how to look for additional data ?

analog warren
#

what does "additional data" mean exactly?

fierce hound
#

In order to listen to event, inside the payload I need 2 additional param, id and address

#

got it?

analog warren
#

no, I don't. Can you elaborate?

#

what's an example of what this ID or address would look like? where do they come from ? are they fields in our API?

fierce hound
#

These are the fields that will be added to metadata

#

I need these values in order to trigger functions on my backend when certain payment_intent events occur.

#

got it now?

analog warren
#

I suppose I do

#

what have you tried already to access those fields in your code that handles the webhook events? what does that code look like?