paymill / paymill-python Goto Github PK
View Code? Open in Web Editor NEWThis project forked from kliment/pymill
Python wrapper for Paymill API
License: MIT License
This project forked from kliment/pymill
Python wrapper for Paymill API
License: MIT License
Test suite should clean up all objects, that can be deleted, most importantly all webhooks.
On this line:
a string is returned, which is being iterated over here:
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
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
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. :)
Last Version is 2.3.0!
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
The paymill API documentation describes a client parameter for checksum creation, but the parameter is missing in the wrapper.
Can you please publish this package on Pypi for easy deployment?
$ 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
No answers or changes in recent times?
Is this version currently usable?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.