#RiderFx3

1 messages · Page 1 of 1 (latest)

boreal fieldBOT
quaint knoll
#

Hello

halcyon fox
#

happy to help! could you share more context?

quaint knoll
#

I try to test my subscriptions webhook with Stripe CLI

#

my webhooks return me Received unknown event type

#

But the event type is correctly handled

#

Are you here ?

halcyon fox
#

Sorry for the delay! Was catching up on a few other questions. Could you share the event ID for which you see this error, and the full stripe listen command you're using with the CLI?

quaint knoll
#

evt_1LihZKKl6jDis02TAeWnxvPT

#

stripe listen --forward-to localhost:8000/app/modules/Abonnement/Webhooks/subscription.php

#

The webook is correctly fired

#

Received unknown event type : invoice.payment_succeeded

#

But it tell me the type of event is incorrect, but it's correct lol

#

Dont' understand why the switch don't work

#

Are you here ?

halcyon fox
#

Digging into this!

#

so just to confirm, the code under case 'invoice.payment_succeeded': is never executed?

#

are you able to add a log line to inspect the value of event type before your switch statement is executed?

quaint knoll
#

If the type is OK

#

I'm trying try to replace the switch by a if else

#

It work now with the if else

#

Thanks