razorpay / razorpay-go

Razorpay Go SDK
MIT License
39 stars 25 forks source link

added webhook verification in resources package #32

Open ashwinp15 opened 3 years ago

ashwinp15 commented 3 years ago

I have implemented the webhook signature verification as mentioned in Issue 18.

Since request body is of type io.ReadCloser and cannot be read again, I have written the function such that it returns a byte slice of the request body so that it can be used for further processing.

Hope this is useful. Feedback appreciated.