Giter VIP home page Giter VIP logo

laterpay-client-python's People

Contributors

doismellburning avatar drdla avatar haraball avatar joaopimentel avatar kamni avatar markush avatar ranael-garem avatar rootxnet avatar slafs avatar stefankjartansson avatar stig avatar suligap avatar

Stargazers

 avatar  avatar

Watchers

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

laterpay-client-python's Issues

Add validator for muid

The muid parameter is currently primarily used as AMP_READER_ID. We should thus add a validator to utils.py that checks for '^[a-zA-Z0-9_-]{1,80}$'

sign_and_encode calls urlencode in contrast to our documentation

Through an email conversation I was pointed at the following incongruity between our published docs and the Python client implementation:

This URL is valid

https://web.sandbox.laterpaytest.net/dialog/add?article_id=jmc_laterpay_demo_article_01&cp=rwSqG6pcYFjcp5wMKFjMxe&pricing=EUR5&purchasedatetime=1409912245&title=Ein+Artikel+%C3%BCber+Heiz%C3%B6lr%C3%BCcksto%C3%9Fabd%C3%A4mpfung&ts=1409912245&url=http%3A%2F%2Flocalhost%3A3000%2Fmodule%2Fdemo%2F&vat=DE19&hmac=2840f1d2d51c72a5d43d358fa449f98bb9aca45d8d7d450a3ea50684

However, it contains "+" for spaces in the article title. Our documentation specifically says we don't do that. This happens because of sign_and_encode calling compat.urlencode. Presumably it should call urllib.quote on these values.

As we use the signing module internally to check signatures as well, we have to measure the impact first before we make a decision on how to proceed. Our existing clients which create verifiable signatures might implement the same bug in their client implementations right now.

(+CC @doismellburning because we discussed this just now on IRC and @haraball because iirc he's the initial author of the above)

Deprecate LaterPayClient.lptoken

Deprecate the lptoken instance attribute on the LaterPayClient as all methods needing lptoken should explicitly accept it as a method argument.

Actually remove deprecated code

We raise a couple of deprecation warnings for a long time now. We should actually clean up the code base and get rid of those function.

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.