#roopa_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ 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/1358731887551578236
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Are you sure that evt_xxx ID exists? It doesn't load for me
I gave that id from request object
I can't find that ID internally I'm afraid
It does. What's the URL of the endpoint you're having issues with?
Thanks! What version of the Java SDK are you using in that code?
I can definitely see the Striope-Signature header in the event payload
Can you share the code where you call ValidateSignature?
Also, double check that the whsec_xxx is the correct secret for https://bffeature2.ccqltd.com/api/pay/webhook
var json = await new StreamReader(Request.Body).ReadToEndAsync();
try
{
var stripeEvent = EventUtility.ParseEvent(json);
var signatureHeader = Request.Headers["Stripe-Signature"];
stripeEvent = EventUtility.ConstructEvent(json, signatureHeader, _stripeSettings.StripeEndPointSecret);
.....}
I have checked secret and it is correct.
Can you remove this line? I think it's redundant really and worry it's malforming json
var stripeEvent = EventUtility.ParseEvent(json);
ok. I will test without it and get back to you.
but how is it working locally with same code?
Not sure I'm afraid. That would point to a different issue indeed, like the whsec_xxx being wrong (which you said it is not)
Currently, we are not in a position to publish the updated code. Is there anything else you want me to check or test?
I would:
- Double check that your
StripeEndPointSecretvariable is the correctwhsec_xxxโ looks like it ends inB2JyND - If this is only a production issue, check that yur host/server is not removing headers from the event payload
Ok, Thank you.