#josephmaxim

1 messages ยท Page 1 of 1 (latest)

long hamletBOT
unkempt prairie
#

Webhook events are also triggered in test mode

karmic flame
#

So i get evt_1O9iHzFrA9OQgg2IWosrSAe6 right after i subscribe to a plan

#

test mode triggers customer.subscription.updated after customer.subscription.created where as on production it skips doesn't trigger customer.subscription.updated

unkempt prairie
#

Did you make a request in live mode?

karmic flame
#

yes i tried.

unkempt prairie
karmic flame
#

req_e30soa39cRn1pJ

#

that is for the live mode

#

this is for dev mode (req_tYM6YWjRhA2rZo)

unkempt prairie
karmic flame
#

yes thats when i manually change the plan from monthly to yearly

#

but when user subscribes to a plan live mode skips customer.subscription.updated

#

this is my dev mode logs

unkempt prairie
#

Can you share with me the ID of the request that you expect to trigger a customer.subscription.updated ?

karmic flame
#

which mode?

#

ill create another request

#

here it is req_xtXEP0z5cW6Fyb

unkempt prairie
#

live mode of course.

#

Creating a checout session won't trigger any event

karmic flame
#

that is live mode

#

but is says checkout.session.completed

unkempt prairie
#

Can you tell me what you want to achieve with webhook events?

karmic flame
#

so basiccally when a user subscribes to a plan i want to update the db with their subscription status

unkempt prairie
#

Ok, when you should listen to customer.subscription.created

karmic flame
#

what about when a users payment failed on renewal.. let say card declined. which event do i listen to update my DB?

unkempt prairie
karmic flame
#

thanks ๐Ÿ‘๐Ÿผ

#

does customer.subscription.updated gets triggered when new invoice is paid every month?

unkempt prairie
#

You mean when it renews? yes

karmic flame
#

yes

#

what would be the best way to test this?