#asadahmad27
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- asadahmad27, 9 hours ago, 19 messages
Hello
If you have specific questions or confusion then I'm happy to help.
I can't really do anything with just a screenshot
ok let me explain. i have setup my checkout session and thena webhook to update my firebase code. when it comes to webhook code. it gives me this error
i don't know what's wrong. it's the same as your documentation
Please redact that screenshot as it has your webhook secret in it which is sensitive
Next, how are you testing your webhook endpoint?
Are you forwarding from the CLI or you have an HTTPS endpoint?
https endpoint
Okay, have you logged out req.rawBody?
It should be binary here
If you see JSON then it means the raw body has already been manipulated
it is giving me a json
yes i also observed this , it is giving me a json
Okay so then you need to figure out why the raw body is getting manipulated. You'll want to do some research into how to get the raw body of the request when using a firebase endpoint
I'm not very familiar with firebase so can't tell you that
can you suggest from where to start
I mean https://stackoverflow.com/questions/42950561/how-can-i-get-the-raw-request-body-in-a-google-cloud-function indicates that req.rawBody is correct so no, don't have much more to recommend then that.
You need to check your endpoint