#stav

1 messages · Page 1 of 1 (latest)

craggy hornetBOT
vital roost
#

Hi there

#

Can you finish your question in this thread?

sacred prawn
#

yes sorry, accidentally pressed enter , now it's edited

vital roost
#

How are you listening for webhooks right now?

#

Are you using the CLI?

#

Or do you have an https endpoint running?

sacred prawn
#

with the CLI it works no problem but now Itrying with an https endpoint and its not working

vital roost
#

Are you verifying signatures?

#

Did you switch the endpoint secret that you are using?

sacred prawn
#

yes

#

but from what im seeing the request dosent even make it the endpoint , before verifying the signatures

vital roost
#

Oh okay so then that sounds like an issue with your server

#

Can you show me your endpoint code?

sacred prawn
#

[HttpPost]
public async Task<ActionResult> Index()
{
var json = await new StreamReader(HttpContext.Request.InputStream).ReadToEndAsync();
OrderManager.InsertToOrderLog(Serializer.SerializeObject(json));
//
//
public static void InsertToOrderLog(string PaymentRequest = "" )
{
//
}

so this code is written on C# and once we get to the second line im suppose to send a log to my db which not happens, and of course this function works at any other place I've used it, and also when i run those lines locally with CLI.

vital roost
#

Hmm yeah I'm not super familiar with C#

#

I'd recommend ignoring Stripe Webhooks for a second and just attempting to send basic cURL requests to your endpoint

#

And make sure you can hit your endpoint successfully

#

Then after that focus on webhooks

#

It sounds like there is overall an issue with your endpoint configuration right now

sacred prawn
#

Roger ill try that,
But what can I use to mimic the stripe signature for further debugging?

vital roost
#

Well the issue isn't the Stripe signature right now

#

But once you are ready, I'd recommend just triggering Events using the CLI to test your endpoint

#

First though, add a log to the very first line of your webhook endpoint code.

#

And make sure you see that log in your server

#

Once you know the endpoint is receiving HTTP requests then you can move on to the Stripe Webhook part