Wich django-paypal fork to use

134 views
Skip to first unread message

Diego Cebrián

unread,
Dec 6, 2013, 4:03:45 PM12/6/13
to django-...@googlegroups.com
I am trying to user django merchant in a project with a custom user confiured via AUTH_USER_MODEL. 
The payments must be done with paypal, and because the rely of external paypal gatway in django-paypal i get an error: 
pro.paypalnvp: 'user' defines a relation with the model 'auth.User', which has been swapped out. Update the relation to point at settings.AUTH_USER_MODEL.

Which fork of django paypal is currently mantained, Copatible with the new django user model and better working?

Thank you.

Thejaswi Puthraya

unread,
Dec 8, 2013, 7:32:58 PM12/8/13
to django-...@googlegroups.com
Hello Diego,
The fork of django paypal recommended by the docs is
https://github.com/dcramer/django-paypal But since it has not been
updated for quite some time, you are probably right that we need to
update the docs with a newer fork.

Can you please check https://github.com/spookylukey/django-paypal and
run the merchant tests for paypal and let us know everything works
fine for you?

Thanks.

>
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "django-merchant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-mercha...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.



--
Cheers
Thejaswi Puthraya
http://thejaswi.info/

Ed Patrick Tan

unread,
Feb 6, 2014, 4:35:17 AM2/6/14
to django-...@googlegroups.com
Hi Thejaswi,

I'm experiencing the exact issue of Diego. I tried https://github.com/spookylukey/django-paypal and ran the tests for paypal. The tests failed at testPaymentSuccessfulSignal (AssertionError: Lists differ: [] != [<django.dispatch.dispatcher.S) and testPurchase (AssertionError: 'FAILURE' != 'SUCCESS'). Do you have updates regarding this issue so that we can use Django 1.5 custom user model with django merchant?

Thanks,
Pat

Luke Plant

unread,
Feb 12, 2014, 5:21:55 AM2/12/14
to django-...@googlegroups.com
Hi all,

I maintain https://github.com/spookylukey/django-paypal which is now the official version of django-paypal (I released version 0.1.3 to PyPI recently). Please do send any patches regarding django-paypal to my repo, I will try to merge, especially if they come with tests.

I'm looking at doing some changes to django-paypal, especially the signals. I don't know if this will affect you, but feel free to add your ideas/requirements here: 


Thanks,

Luke

Thejaswi Puthraya

unread,
Feb 12, 2014, 9:33:43 AM2/12/14
to django-...@googlegroups.com
Hello Luke,
On merchant, we have only two signals which in some cases (eg: PayPal
offsite) are mapped to the upstream signals. For paypal integration,
we map to `payment_was_flagged` and `payment_was_successful`. Since we
don't expose the upstream's signal to the user we can migrate to the
new signals that you create without breaking backwards compatibility.

Regarding whether you should create a signal for every event or have a
general notification, my vote would be for a general notification and
let the developer handle it.

Ed,
I have created an issue [1] on merchant to keep track of the upstream
issue. As soon as django-paypal finalizes their signals we will
migrate.

[1] https://github.com/agiliq/merchant/issues/94

Luke Plant

unread,
Feb 18, 2014, 11:17:02 AM2/18/14
to django-...@googlegroups.com
This should be fixed now:


I haven't done a new release, but the version on GitHub should be stable.

Luke
Reply all
Reply to author
Forward
0 new messages