#Kolombina

1 messages · Page 1 of 1 (latest)

lavish acornBOT
wary swan
#

Hi there!

#

I suggest editing your message to remove your webhook secret

charred rune
#

acct_1K7fjfCWjMNdyNil

wary swan
#

Which webhook endpoint ID (we_xxx) is having issues?

charred rune
#

we_1KdJn9CWjMNdyNil2J6IbW8q

#

this key I've found at stripe cli and used it for a long time

#

whsec_102...fff4

wary swan
#

this key I've found at stripe cli and used it for a long time
You can't use the whsec_ from the CLI for real webhook endpoint

charred rune
#

error raises on your piece of code (I copied it form docs)

    try:
        event = stripe.Webhook.construct_event(
            payload=request.body, sig_header=signature, secret=endpoint_secret
        )
    except ValueError as e:
        # Invalid payload.
        return HttpResponse(status=400,data=e)
    except stripe.error.SignatureVerificationError as e:
        # Invalid Signature.
        return HttpResponse(status=400)
cunning basalt
#

Hey! Taking over for my colleague. Let me catch up.

cunning basalt
charred rune
#

now it works, but i changed nothing 🤯

#

ok, thanks!

cunning basalt
#

You're welcome