Built a tiny M-Pesa webhook demo, stuck on webhook verification
I built a tiny web page that lets a shop accept payment through M-Pesa after a buyer clicks a button. I got stuck on checking that the request really comes from M-Pesa, I need to verify the signature they send. The trick is to use the secret key they give and compare the hash, but I’m not sure how to set that up yet.