#rocketkittens_webhooks

1 messages ¡ Page 1 of 1 (latest)

visual topazBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1414696304201695303

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

vague moth
#

i can see the transactions in the stripe dashboard but i do not see the webhooks being called for the subscription made with test clock

bitter veldt
#

Hello
Can you share the invoice ID/PaymentIntent ID?

vague moth
#

i dont believe there is one, ive created it using stripe.subscription.create

#

programmatically making a test clock, customer, subscription and updating the card to test invoice.payment_failed

bitter veldt
vague moth
#

looks like im not getting webhooks in general

#

but when i do stripe trigger i see them

bitter veldt
#

Are you logged into the right account on Stripe CLI?

vague moth
#

i see this now:
Error: No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe?

bitter veldt
vague moth
#

i had webhooks working previously

bitter veldt
#

It's possible something might have changed in your code or account
I'd recommend reading through the debugging doc I shared above

vague moth
#

ive already looked at it

#

do i need to create a webhook endpoint or do i test in local environment?

#

i recently switched from test mode to sandbox, i think thats where the problem started

bitter veldt
#

Seeing the above error means that the SDK is unable to verify that the payload came from Stripe.
This could happen for various reasons

  1. You are parsing Stripe's payload to JSON before the SDK receives it
  2. You are using the wrong API key for the event
#

Sandboxes have their own API keys

#

so you need to make sure you're using the right one

visual topazBOT
vague moth
#

where do i get the web hook signing key from?

#

do i need to create an event destination?

#

i click test in local environment and done and nothing in created

#

im not seeing webhooks triggering still

#

when i update my subscription in customer portal it doesnt emit the subscription.updated webhook

#

but if i run stripe trigger payment_intent.succeeded that works, i see that webhook

#

im very confused by this, why isnt the subscription update in customer portal send a webhook event?

spring citrus
vague moth
spring citrus
#

Are you saying this wasn't delivered to your local endpoint via the cli or an endpoint you registered in the dashboard?

vague moth
#

cli

#

something is completely broken with my webhooks suddenly, i think its since i switched to sandbox

spring citrus
#

Is your cli listening for customer.subscription.updated events?

vague moth
#

yes

spring citrus
#

You said you got a payment_intent.succeeded event delivered. What's its id?

vague moth
#

2025-09-08 16:03:57 --> payment_intent.requires_action [evt_3S5BIRP1RfWclRKN0ozTahhU]
2025-09-08 16:03:57 --> payment_intent.created [evt_3S5BIRP1RfWclRKN0rwiVaLm]

spring citrus
#

Ah

#

So those were created on a different account

#

That's why

#

Those were created on acct_1PilQqP1RfWclRKN

#

Which is not a sandbox account

#

Your customer.subscription.updated event was created on sandbox account acct_1Rv4DM0nDohN4sqp

#

So your listener is not listening to sandbox account events

vague moth
#

how do i fix this?

spring citrus
#

So you only want to receive events created on sandbox acct_1Rv4DM0nDohN4sqp correct?

vague moth
#

i dont know what account that is

#

i have 2 sandboxes

#

right now im focused on jsut one

#

why its not working i still do not understand

spring citrus
#

You have to be logged into that sandbox account in the cli

#

You're logged into your platform account instead

#

Sandboxes are separate accounts functionally

#

You can find the right account id of the sandbox you want to use in the url of your browser when you click the applicable sandbox

vague moth
#

i see, that explains it

spring citrus
#

I'm assuming it's acct_1Rv4DM0nDohN4sqp because that's the account customer.subscriptoin.updated was created on but please confirm

vague moth
#

i dont know how

spring citrus
#

You can find the right account id of the sandbox you want to use in the url of your browser when you click the applicable sandbox

#

In your dashboard

vague moth
#

the ui is very slow

#

im trying to figure out how to make cli login correctly

spring citrus
#

Yes I understand

#

I'm trying to help you right now

#

By finding the proper account id of the sandbox account

vague moth
#

okay its working now thanks

#

i have a lot of debugging to catch up on now

#

i just needed to run stripe login again and i was able to select the sandbox, i believe also the listen command changed the signing key finally

#

appreciate your time

spring citrus
#

Login changes the key

#

No problem

vague moth
#

i was logged in to test mode like you said