lehuygiang28 / vnpay

An open-source nodejs library support to payment with VNPay (vnpay.vn)
https://vnpay.js.org
MIT License
63 stars 26 forks source link

[Bug] Incorrect signature hash during verify return url #15

Closed tachibanayui closed 2 months ago

tachibanayui commented 2 months ago

Method verifyReturnUrl divides by 100 before verifying the signature which leads to a signature mismatch between VNPay API and our hash.

lehuygiang28 commented 2 months ago

Oh, I see it can be divided by 100 twice. Thank you. I will fix it ASAP.

tachibanayui commented 2 months ago

Please publish an update on npm after you resolve this bug, thank you.

lehuygiang28 commented 2 months ago

Hi, I fixed it in v1.5.1. Please let me know if you have any issues. Thank you!