Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

valid_ipn_received.connect(show_me_the_money) has never called. #81

Closed
shinriyo opened this issue Mar 8, 2015 · 10 comments
Closed

valid_ipn_received.connect(show_me_the_money) has never called. #81

shinriyo opened this issue Mar 8, 2015 · 10 comments

Comments

@shinriyo
Copy link

shinriyo commented Mar 8, 2015

I tried the code in the page
http://django-paypal.readthedocs.org/en/latest/standard/ipn.html

I certainly added the valid_ipn_received.connect(show_me_the_money) in my views.py
But, show_me_the_money has never called.
Is it bug?

@spookylukey
Copy link
Owner

This function works as advertised. Please use the PayPal sandbox to ensure that you are wiring up the IPN view correctly.

@shinriyo
Copy link
Author

Yes. I use PayPal sandbox.
And, I added show_me_the_money in my views. Is it inside of paid method?
Users class is User?
How to define the user who bought via Paypal?

@shinriyo
Copy link
Author

urls.py
url(r'^payment-url/$',
login_required(view_that_asks_for_money), name='paypal'),

I found

http://w3facility.org/question/django-paypal-does-not-receive-ipn-signal/

@spookylukey
Copy link
Owner

I'm guessing that you are attempting to test on localhost, without using something like ngrok.

I've added a section to the bottom of the docs about this: https://github.com/spookylukey/django-paypal/blob/master/docs/standard/ipn.rst

@shinriyo
Copy link
Author

Thank you for replying and telling me ngrok, the useful service.
But, I don't use localhost. I use public IP address. And I also use sandbox.
I read your additional document. My server protected by firewall.
I'd like to open port, but what number of port must I open?

@shinriyo
Copy link
Author

Hello spookylukey

I tried ngrok. But, valid_ipn_received.connect didn't work.

I pushed the my minimum project on my github

https://github.com/shinriyo/paypal_test

@shinriyo
Copy link
Author

The code is not be called.

https://github.com/shinriyo/paypal_test/blob/master/paypal_test/urls.py#L36

I really need your help.
Could you tell me what is wrong?

@spookylukey
Copy link
Owner

No, I can't tell you what is wrong, because I don't know! I'm afraid I can't provide any more help for this.

@shinriyo
Copy link
Author

I found what I should have set the setting in my PayPal site.
The setting was hard to find for me such as non-native English speaker.
I spend about one week to resolve. So, I was impatient. I'm sorry.

@techietek
Copy link

@shinriyo what was the issue as I am seeing the same problem?

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

No branches or pull requests

3 participants