razorpay / razorpay-python

Razorpay Python SDK
https://pypi.python.org/pypi/razorpay
MIT License
153 stars 81 forks source link

Razorpay Verify Payment Signature Failed with Valid Signature #178

Closed varun-jaggi closed 1 year ago

varun-jaggi commented 2 years ago

Hi,

i am trying to use Verify Signature payment func to verify my payments exactly like this client.utility.verify_payment_signature(params_dict) but it fails with 'Razorpay Verify Payment Signature Failed'

The github razorpay code contains Verify Signature functions but it is not updated on Pip.

also i need clarity on verify_payment_signature and verify_subscription as my model works in subscription mode.

To Note:

@kumarishan @Hashfyre @captn3m0 @gaurav1068

jashandeep1659 commented 1 year ago

did you find solution

ankitdas13 commented 1 year ago

@varun-jaggi My apologies for the long delay and also for the difficulties you have encountered. Could you let us know if this issue was resolved ? The changes are already updated in Pip

ankitdas13 commented 1 year ago

Closing this issue for now, due to not getting any response. If you are still facing this same issue, please update to the most recent version to resolve this issue. Please let us know if you need any help.

csgeeek commented 1 year ago

I am still facing this issue with client.utility.verify_payment_signature(params_dict). It fails every time with this exception Razorpay Verify Payment Signature Failed even when the details provided are correct. Also, this method client.utility.verify_subscription_payment_signature throws error saying Utility not found.

For a quick work around I am manually generating a hmac_signature and comparing it with razorpay_signature as per the documentation.

I am doing this for subscriptions.