#riderfx3

1 messages · Page 1 of 1 (latest)

quick snowBOT
vale island
#

Hi
customer.subscription.deleted is triggered only when the Subscription is deleted. However a Subscription isn't directly deleted if a payment was failed. Instead there'll be an invoice.payment_failed event triggered first.

quick snowBOT
spare sapphire
#

Hi

#

My problem is when clients don't pay, I didn't receive the notification in my webhook

vale island
#

Can you share a Subscription Id ?

spare sapphire
#

But in Stripe, the subscription don't exist anymore

#

Wait a minute

#

For example : sub_1MOPvaDY4NUh1pUiX3BStbqZ

#

This one was automatically canceled but we did'nt receive the notification in the Webhooks

#

OK I can now see in the stack trace there is a PHP error in my webhook

#

Uncaught Stripe\Exception\InvalidArgumentException: The resource ID cannot be null or whitespace

#

Ok I found the error now I can debug. Thanks.

rain swan
#

👍

spare sapphire
#

Can you confirm one thing

rain swan
#

What's up?

spare sapphire
#

My webhook receive this object right ?

#

And not the complete event above this line

rain swan
#

Correct

spare sapphire
#

Thks