#cynnez
1 messages · Page 1 of 1 (latest)
It's just like any other backend to handle webhook. Did you get it working on your localhost?
my localhost works but when i put the function into lambda, it directly gives me internal server error for lambda function. through webhook, it stll gives me my old error which i do not know where to start solving it.
like example; in stripe webhook will show this but status 200 which is weird:
in lambda function:
- when i run it: successfully given me a checkout url : [Picture attached]
- but when i open up the function url and check, my lambda function is facing the same error from the stripe webhook side. which is the "SyntaxError" [2nd picture attached]
Hmm you probably want to add some more log in the lambda code. You want to find where exactly is the line it started throwing error
Okay noted, I will try first. But also, for this subscription, do I need to check the webhook signature or just leave it like this where it's technically working but just having the error for the lambda function?
That's a lambda function to accept the webhook event right? So you will always want to verify the signature
I would recommend separate the endpoint to receive webhook, with endpoint to do anything else
What do you mean by endpoint? Is it the lambda function?
So meaning, u recommend me to do one lambda function to retrieve the webhook? Do you have any example on how to do this?
Another lambda function to maybe do the checkout url ?