#harsha.bharadwaj-payment_intent.cancelled

1 messages · Page 1 of 1 (latest)

golden fern
#

Or you can create and cancel one yourself via the API

minor arch
#

it's a stripe connect event I've to generate

golden fern
minor arch
#

but the event generated through cli is different from the auto generated event

#

the structure is different

golden fern
#

How so?

minor arch
#

yeah

golden fern
#

Where are you seeing the structure as different?

minor arch
#

I've configured a webhook

#

and also in the stripe dashboard's events

golden fern
#

I am still unclear on what is happening here.

#

So are you having trouble getting the event to be sent or in receiving it?

minor arch
#

I would like to generate a test event where from stripe connect for payment_intent.canceled

#

I've done it for payment_intent.succeeded and payment_intent.failed

#

by using testing cards

#

but unable to find any testing card to generate cancelled payment inten t

golden fern
#

Thank you for the clarification

minor arch
#

ah okay

golden fern
#

It is for you to prevent further charge attempts from that PI

minor arch
#

I'm able to generate it with this as per you suggestion stripe trigger --stripe-account acc_XXXXX payment_intent.canceled

#

but I'm not able to listen to this event in local machine

#

this is the command I'm using to listen to stripe listen -a http://localhost:8000/stripe-connect

golden fern
minor arch
#

this is the command I'm using stripe listen -c http://localhost:8000/stripe-connect

golden fern
#

So are these events showing up at all on your CLI?

minor arch
#

earlier was wrong one and will throw error

#

nope not showing in CLI

golden fern
#

Do you have the event ID evt_123 of an event that you generated like this?

minor arch
#

this is the error "invalid_request_error"

#

I'm trying to resend it with the id but throwing an error

#

yeah

golden fern
#

The CLI is giving you invalid_request_error?

#

Can you paste the full error text here?

minor arch
#

{ "error": { "code": "resource_missing", "doc_url": "https://stripe.com/docs/error-codes/resource-missing", "message": "No such notification: 'evt_3JwBRhPaFBJIpqYu0JkkeqTO'", "param": "id", "type": "invalid_request_error" } }

golden fern
#

And that was on the stripe trigger --stripe-account acc_XXXXX payment_intent.canceled command?

minor arch
#

the error is on stripe events resend evt_3JwBRhPaFBJIpqYu0JkkeqTO

golden fern
#

When you do that you will also want to use the --stripe-account argument

minor arch
#

this is the errorr I'm getting now
{ "error": { "message": "You are not permitted to configure webhook endpoints on a connected account. Did you mean to create a Connect webhook on your account instead?", "type": "invalid_request_error" } }

golden fern
#

If that doesn't work, send me your full command again and I will make sure I am recreating this properly on my side

minor arch
#

now no error

#

but still nothing in console listened

golden fern
#

Can you restart your listen commend but with --log-level debug and then try sending the event again?

minor arch
#

it worled with -f flag

#

thanks for you support

#

I'm thankful for you swift response

golden fern
#

Of course!

#

Thank you for your patience there!

#

Can you send me the final listen and resend command you used to get this to work?

#

I will make sure I understand these better