Skip to content

Conversation

@mpyatishev
Copy link

No description provided.

@antonagestam
Copy link
Contributor

@mpyatishev The tests are failing.

@mpyatishev
Copy link
Author

On my local machine all tests passes. It looks like the case of the difference between my environment settings and environment for Travis. How can I check it?

@flc
Copy link

flc commented Apr 24, 2014

i'm also interested to make this happen. i cloned your repo but i'm experiencing the same errors as in the travis log on my local machine.
what i did:

mkvirtualenv pa
git clone [email protected]:mpyatishev/django-paypal-adaptive.git
cd django-paypal-adaptive
pip install -r requirements_test.txt
python runtests.py
...
----------------------------------------------------------------------
Ran 34 tests in 0.386s

FAILED (errors=6)

@mpyatishev
Copy link
Author

It turned out that the Money.__init__() does not check arguments to None, and that broke the tests. I made the appropriate pull-request in py-moneyed.

@antonagestam
Copy link
Contributor

@mpyatishev That seems like something that should be changed in django-paypal-adaptive. If py-moneyed doesn't accept None as amount, Decimal('0.0') should be passed instead.

Btw, no one from FundedByMe has been active here for a few months, I believe they are moving away from Paypal Adaptive and thus it's not likely that they'll keep maintaining this package or accept pull requests. I'd suggest get a conversation going about someone else taking over those responsibilities.

@mpyatishev
Copy link
Author

Perhaps you're right.

@flc
Copy link

flc commented Apr 28, 2014

@antonagestam do you know where they are moving to? perhaps http://www.mangopay.com?
what other services support the scenarios paypal adaptive payment supports: parallel, preapproval, chained etc.? (sorry for the offtopic)

@mpyatishev
Copy link
Author

antonagestam, On my opinion its not matter because in Money.__init__() it will converted to Decimal('0.0') anyway.

@antonagestam
Copy link
Contributor

@mpyatishev In this particular case it's probably fine but I'd say it's bad practice to use floats when you need higher precision for instance, take this example:

>>> i = 0.00001
>>> i
1e-05
>>> from decimal import Decimal
>>> d = Decimal(i)
>>> d
Decimal('0.000010000000000000000818030539140313095458623138256371021270751953125')

See my point?

@jakob-o
Copy link

jakob-o commented Jul 14, 2014

May I politely ask, what the state of this pull request is?

@rmeritz
Copy link
Contributor

rmeritz commented Aug 1, 2014

@jakob-o - We are no longer using PayPal or this library. So are no longer planning on maintaining it. We are now maintaining the django-mangopay library instead.

If you are interested in taking over as the official owner let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants