Code Monkey home page Code Monkey logo

pykhipu's People

Contributors

fixmycode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pykhipu's Issues

error de dependencias de importlib_metadata

Hola, estoy desarrollando un conector para django-payments y tengo un problema con la resolucion de versiones

tardis proyectos/django-payments-khipu ‹main*› » poetry install                                                          
Updating dependencies
Resolving dependencies... (1.0s)

Because no versions of mkdocstrings match >0.22.0,<0.23.0
 and mkdocstrings (0.22.0) depends on importlib-metadata (>=4.6), mkdocstrings (>=0.22.0,<0.23.0) requires importlib-metadata (>=4.6).
And because pykhipu (0.1.9) depends on importlib_metadata (>=1.7.0,<2.0.0), mkdocstrings (>=0.22.0,<0.23.0) is incompatible with pykhipu (0.1.9).
So, because django-payments-khipu depends on both pykhipu (0.1.9) and mkdocstrings (^0.22.0), version solving failed.

Esto no ocurre cuando uso python 3.10+ y creo que tiene que ver con esta definicion en pyproject.toml

importlib_metadata = {version = "^1.7.0", python = "<3.9"}

podrían actualizar las versiones para hacerlas compatibles con versiones mas actualizadas.

Problemas al recibir la respuesta de eliminar un pago

Hola nuevamente,

Me encontrado con un nuevo bug al momento de eliminar un pago que aún no ha sido finalizado. Te adjunto el error:

Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 179, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/views/generic/base.py", line 70, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 509, in dispatch
response = self.handle_exception(exc)
File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 469, in handle_exception
self.raise_uncaught_exception(exc)
File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
raise exc
File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "/opt/project/Voucher/viewsets/rejected_voucher.py", line 34, in post
client.payments.delete(voucher.payment_id)
File "/usr/local/lib/python3.6/site-packages/pykhipu/payments.py", line 57, in delete
return SuccessResponse.from_response(response)
File "/usr/local/lib/python3.6/site-packages/pykhipu/responses.py", line 14, in from_response
return cls.from_data(data)
File "/usr/local/lib/python3.6/site-packages/pykhipu/responses.py", line 540, in from_data
return cls(data['message'])
KeyError: 'message'

Realicé un print al response que entrega khipu y por lo visto ahora retorna un diccionario vacío.

Hay alguien utilizando la librería en python 2.7?

Me gustaría saber si es crítico seguir soportando compatibilidad con Python 2.7, ya que terminó el soporte para el intérprete. Si algún usuario tiene la necesidad por favor me gustaría que me lo haga saber a través de este mensaje, el último release (0.1.5) y el siguiente deberían seguir soportando 2.7 pero no sé si sea necesario para una versión 0.2.0.

Problemas al solicitar estado del pago

Hola,

Primero que nada, gracias por compartir esta librería, pero al parecer me he encontrado con un problema al momento de consultar el estado del pago (adjunto el error).

web_1 | File "/usr/local/lib/python3.6/site-packages/pykhipu/payments.py", line 48, in get_id
web_1 | return PaymentsResponse.from_response(response)
web_1 | File "/usr/local/lib/python3.6/site-packages/pykhipu/responses.py", line 14, in from_response
web_1 | return cls.from_data(data)
web_1 | File "/usr/local/lib/python3.6/site-packages/pykhipu/responses.py", line 77, in from_data
web_1 | conciliation_date = dateutil.parser.parse(data.get('conciliation_date'))
web_1 | File "/usr/local/lib/python3.6/site-packages/dateutil/parser/_parser.py", line 1374, in parse
web_1 | return DEFAULTPARSER.parse(timestr, **kwargs)
web_1 | File "/usr/local/lib/python3.6/site-packages/dateutil/parser/_parser.py", line 646, in parse
web_1 | res, skipped_tokens = self._parse(timestr, **kwargs)
web_1 | File "/usr/local/lib/python3.6/site-packages/dateutil/parser/_parser.py", line 725, in _parse
web_1 | l = _timelex.split(timestr) # Splits the timestr into tokens
web_1 | File "/usr/local/lib/python3.6/site-packages/dateutil/parser/_parser.py", line 207, in split
web_1 | return list(cls(s))
web_1 | File "/usr/local/lib/python3.6/site-packages/dateutil/parser/_parser.py", line 76, in init
web_1 | '{itype}'.format(itype=instream.class.name))
web_1 | TypeError: Parser must be a string or character stream, not NoneType

Para entrar en detalles, consulté un pago que aún se encuentra en proceso y arroja el error presentado. Luego consulté un pago que ya fue realizado y funciona perfectamente. Estuve realizando el seguimiento a las respuestas y al código y al parecer no retorna la misma cantidad de llaves al momento de realizar el GET cuando el pago se encuentra o no pagado.

Versión utilizada: 0.1.7

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.