Coder Social home page Coder Social logo

paymill-python's People

Contributors

02strich avatar daredevildave avatar edmund-wagner avatar kliment avatar l0ck3 avatar la0 avatar lukasklein avatar markvdb avatar mbi avatar mfa avatar paheld avatar sebslomski avatar tschelabaumann avatar yalnazov avatar zerok avatar

Stargazers

 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

Watchers

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

paymill-python's Issues

AttributeError when trying to get Subscription object form Client object

Documentation states that "client.subscription returns a subscription object".

Trying to access the subscription object on the client object like this:

paymill_client = client_service.detail(paymill.models.client.Client(id='client_id123'))
print paymill_client.subscription

Throws the following error:

AttributeError
'NoneType' object has no attribute 'properties'

.virtualenvs/portail/local/lib/python2.7/site-packages/paymill/models/client.py in __getattribute__
            return ListProperty(subscription.Subscription).wrap(attr) ...

.virtualenvs/portail/local/lib/python2.7/site-packages/jsonobject/base_properties.py in wrap
        wrapper = self.type_to_property(self.item_type) if self.item_type else None ...

.virtualenvs/portail/local/lib/python2.7/site-packages/jsonobject/base_properties.py in item_type
                self.set_item_type(self._item_type_deferred) ...

.virtualenvs/portail/local/lib/python2.7/site-packages/jsonobject/base_properties.py in set_item_type
        allowed_types = set(self.type_config.properties.keys()) 

Using the following packages
jsonobject==0.6.3
paymill-jsonobject==0.7.1beta
paymill-wrapper==2.1.0

Error importing paymill

After installing with pip install paymill-wrapper and importing it in a brand new project with import paymill i receive the following error:

import paymill
  File "/Projects/paymill-test/venv/lib/python2.7/site-packages/paymill/__init__.py", line 3, in <module>
    from .paymill_context import PaymillContext
  File "/Projects/paymill-test/venv/lib/python2.7/site-packages/paymill/paymill_context.py", line 3, in <module>
    from .utils import http_client
ImportError: No module named utils

Is there something I'm missing? Env: MacOS 10.10 and Python 2.7

Enabling httplib debugging globally can have unwanted side effects

In paymill/utils/http_client.py, you set:

http_client.HTTPConnection.debuglevel = 1

Problem is, this affects all code that uses httplib. We’re using paymill-python in a larger application and ended up with huge log files because each and every HTTP request got logged. :)

Add new parameter mandate_reference

A new optional parameter is available for both Transaction and Subscriptions
"mandate_reference" - non empty string.

For transactions:

Update the Transaction model ( add mandateReference String)
Update the create method(s) (as optional parameter)

For Subscriptions

Update the Subscription model ( add mandateReference String)
Update the create method(s) (as optional parameter)
Update the update method (make Subscrition.mandateReference @Updateable )

Template: paymill/paymill-php@51800d6

Publish on Pypi

Can you please publish this package on Pypi for easy deployment?

Cannot import paymill

$ pip install -e "git+https://github.com/paymill/paymill-python#egg=paymill"

then:

>>> import paymill
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/yuval/.virtualenvs/proj/src/paymill/paymill/__init__.py", line 3, in <module>
    from paymill_context import PaymillContext
ImportError: No module named 'paymill_context'
>>>

Most likely this line needs to be a relative import:

from .paymill_context import PaymillContext

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.