#sree-testclock-events

1 messages · Page 1 of 1 (latest)

granite meadowBOT
plain basalt
#

What have you tried so far?

hollow night
#

i want the subscription to be cancelled due to some reasons like card declined. I added a user to test clock, added payment method, then added a subscription. Then I advanced the time by 1 month. In this case, I think the subscription will get renewed automatically. So I tried to remove the card but it was not allowing to do that

#

Maybe changing the card number will work?

plain basalt
#

Yes, try updating the PaymentMethod

hollow night
#

when i advance the time, i dont see any new webhook actions

#

ideallyit should try to update subscription right?

granite meadowBOT
plain basalt
#

If you're not seeing any new webhook events, you might not have advanced the time enough

hollow night
#

okay

#

One more doubt

plain basalt
#

sure what's the question?

hollow night
#

Whenever the user makes a payment, payment_intent.succeeded event will be triggered right?

plain basalt
hollow night
#

I updated the subscription of a test user and payment_intent.succeeded was not triggered

plain basalt
#

Are you saying the event wasn't generated even though payment succeeded? Can you share the test subscription ID?

opal niche
#

sree-testclock-events

hollow night
#

sub_1NucEjSGtKVHB2p0y4KypKGz

opal niche
#

let me have a look

#

that Event is the invoice.paid as expected

hollow night
opal niche
hollow night
#

Okay thanks for the info

opal niche
#

None of your webhook endpoints are configured to listen to those Events.

hollow night
#

Oh sorry. the webhook was disabled

hollow night
opal niche
#

that webhook endpoint listens to a completely different Event: payment_intent.succeeded

hollow night
#

Ohhh

#

okay

#

I wanted help regarding the same

#

payment_intent.succeeded

opal niche
#

If you are using Invoices you should not listen to payment_intent.succeeded at all

opal niche
#

and payment_intent.succeeded would be generated once the payment is successful.
For that Event to happen, there needs to be a payment

hollow night
#

I am using subscription plans. I want to get nnotified when a payment happens. Am i doing it right?

#

when a payment happens on a subscription

opal niche
#

I'm sorry, you seem so lost right now and ask the same questions over and over but you don't look

#

at the bottom it lists every Event generated, you can look all of them one by one which takes 2 seconds and gives you the full and complete answer

#

It's the same as me explaining earlier to look at the Events page and filtering by type

#

this is what it looks like, the 4th one on that Invoice page is what you want

#

Does all of that make sense?

hollow night
#

Yes.

#

One more question. Is payment_intent.succeeded depricated?

#

Ypu have told "And really as a developer you need to ignore invoice.payment_succeeded entirely. It's old and deprecated,"

#

just wanted to confirm the same with " payment_intent.succeeded"

opal niche
hollow night
#

Sure. thanks a lot

#

Sorry if my questions were dumb

#

Have a nice day

opal niche
#

your questions weren't dumb but you were too focused on that one thing and not looking at the tools that exists

#

I know it's not easy to take a step back when something seems broken but hopefully uou see the 2 ways to look at Events

#

you can also use our CLI tool https://stripe.com/cli and use stripe listen to see all Events happening on your account. It makes debugging Events a lot easier

hollow night
#

Cool 🙂

#

thanks again

opal niche
#

sure thing!

hollow night
#

All your points are noted.

#

Bye!