Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"verifySignature" function not working in lib/payouts/services. #46

Open
oshinpojta opened this issue Jul 29, 2023 · 0 comments
Open

"verifySignature" function not working in lib/payouts/services. #46

oshinpojta opened this issue Jul 29, 2023 · 0 comments

Comments

@oshinpojta
Copy link

oshinpojta commented Jul 29, 2023

-- In the documentation, it was written that "postData" should be a string of concatenated values of the request-body object, which should be created by sorting keys in "descending" order, excluding the "signature" key and encryption type should be set to "base64".

-- But in function, it is treating the body as an "object" and converting it using "toString()" then encrypting it in "hex" rather than "base64".

-- code has been fixed and PR has been raised.

@oshinpojta oshinpojta changed the title "verifySignature" function not working for Payouts. "verifySignature" function not working in lib/payouts/services. Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant