Giter Club home page Giter Club logo

paddle-verifier's People

Contributors

jamius19 avatar marcospoerl avatar ul-jf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

paddle-verifier's Issues

One specific valid paddle webhook is not being verified

I have been using this module in my application for quite some time to verify paddle webhooks.
But today, I observed a problem that one webhook from paddle is constantly denied by this verifier. I couldn't find the problem. It is a completely valid webhook with proper p_signature value.
Can you help me finding the issue?

Verification fails when special characters are received

StringParser.generateInnerValues() will produce a wrong string length when the string contains a special character. (Eg.: á)
You should change val.length() to val.getBytes().length. (Probably you should use UTF-8 charset.)
Please refer to this StackOverflow issue

I implemented the verifier for myself in Kotlin based on this implementation. I found this issue and thought it'll help somebody.
You can receive a special character in the subscription_payment_succeeded webhook in the customer_name field. (You will receive the cardholder's name.)

is URL Decoding the signature correct?

pSignature = URLDecoder.decode(pSignature, StandardCharsets.UTF_8);

I'm coming across this for the first time, so apologies if I've got hold of the wrong end of the stick but ...

Are you sure that the you need to URL decode the signature?

Looking at the other language examples from https://developer.paddle.com/webhook-reference/verifying-webhooks, it appears they only Base64 decode.

Also the signature that comes through from the Webhook tester https://sandbox-vendors.paddle.com/webhook-alert-test appears not to have url encoded the signature.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.