#vaths59

1 messages ยท Page 1 of 1 (latest)

slim cobaltBOT
gaunt tangle
#

Hi there, HTTP_STRIPE_SIGNATURE is a header set by Stripe for webhook event.

noble tusk
#

Can't understand, can you explain it in detail?๐Ÿ˜…

gaunt tangle
noble tusk
#

Thank you โ˜บ๏ธ

#

Does the signature varies each time when webhook event occurs?

gaunt tangle
#

Yes, the signatures will be different

noble tusk
#

Then how can I implement it with my program in my server?

#

I can't successfully run and test a process . That error shows keyerror with HTTP_STRIPE_SIGNATURE message

gaunt tangle
#

You can use stripe trigger CLI command to create a event to test your webhook endpoint.

noble tusk
#

That's fyn with local testing but what should I do to make it work in live mode?

gaunt tangle
#

I'd suggest you to make it work in test before moving to live.

noble tusk
#

Even in test mode I'm working in a live web server to check it's working online. Even for that it's not working.

#

What should I do for that?

#

Using test mode payment checkouts, test keys,etc.

gaunt tangle
#

Then you might want to check you code. If I were you I'll print out request.META and see if it's the right data structure to get the signature header.

noble tusk
#

Do you have any working code for it?

#

These online codes in stripe docs feels like they are not working to my expectations ๐Ÿ˜ž

gaunt tangle
noble tusk
#

Fyn thank you

#

Just checked now, even using the example code in the document, I can't get the http signature

gaunt tangle
#

Stripe sends the event as a POST requet

#

Is your webhook endpoint handling POST requests?

noble tusk
#

How can I check that?

gaunt tangle
#

That's your code.

noble tusk
#

??

#

Can't understand?