#roopa_webhooks

1 messages ยท Page 1 of 1 (latest)

sly abyssBOT
#

๐Ÿ‘‹ 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.

tribal bone
#

Are you sure that evt_xxx ID exists? It doesn't load for me

plush olive
#

I gave that id from request object

tribal bone
#

I can't find that ID internally I'm afraid

plush olive
#

evt_1RAbXbDwT5gdvn7nYrTyphf4

#

could you please see if above works?

tribal bone
#

It does. What's the URL of the endpoint you're having issues with?

plush olive
tribal bone
#

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

plush olive
#

We are using c# nuget package and version is 40.8.0

#

It works fine locally.

tribal bone
#

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

plush olive
#

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.

tribal bone
#

Can you remove this line? I think it's redundant really and worry it's malforming json
var stripeEvent = EventUtility.ParseEvent(json);

plush olive
#

ok. I will test without it and get back to you.

#

but how is it working locally with same code?

tribal bone
plush olive
#

Currently, we are not in a position to publish the updated code. Is there anything else you want me to check or test?

tribal bone
#

I would:

  • Double check that your StripeEndPointSecret variable is the correct whsec_xxx โ€“ looks like it ends in B2JyND
  • If this is only a production issue, check that yur host/server is not removing headers from the event payload
plush olive
#

Ok, Thank you.