Comments (12)
Would the fact that the order is in the DB cause the library to return a 500 error if PayPal attempts to resend the IPN?
from codeigniter-paypal-ipn.
Hi smalldogs - what are you seeing in your ipn_log
table - are there any messages of type ERROR
in there?
from codeigniter-paypal-ipn.
Negative. Of my last 100 rows of ipn_log
all are SUCCESS
from codeigniter-paypal-ipn.
Weird... Could your IPN CodeIgniter controller be doing something to cause an error after the codeigniter-paypal-ipn code has run? What return code do you see in your browser (use Chrome Developer Tools) when you replay a 500ed order directly in your browser?
from codeigniter-paypal-ipn.
There was an error in my codeigniter mail sending, resulting in all validations and db calls to be executed as expected, but still give PayPal a 500 response because of the email error.
from codeigniter-paypal-ipn.
Okay cool - thanks for letting me know!
from codeigniter-paypal-ipn.
I ran into the same issue, I would suggest a code change to have the mailing (smarty) DISABLED by default, and let the user enable their method of notification (in my case I use an internal app method via the DB to notify, no need for emails)
from codeigniter-paypal-ipn.
Thanks Don for your comment and pull request. The example controller was originally meant just to give a flavour of how an IPN response can be handled (I don't view it as part of the library itself), but it looks like people are using it rote and then coming a cropper.
The trouble with commenting out the emailing is that I know people will then start running into the opposite problem: i.e. they will deploy the example controller without checking it, and then wonder why they are not receiving any notifications about their orders. To get around this, I'm going to split example.php into example-no-notification.php and example-smarty-email-notification.php. Then it should be pretty error proof and people can choose which example they want...
from codeigniter-paypal-ipn.
@alexanderdean makes sense, thanks :)
I was one of those few that didn't need the notification as an email, added my own piece but totally forgot about the email, I commented out the 'sending', as I was working quick to add paypal functionality.
My sandbox tests worked, so I proceeded to production where I kept getting good responses by paypal was getting ipn failures. So I realized then this was the cause after further review.
from codeigniter-paypal-ipn.
Thanks @donjakobo - I'm sorry you got caught by that, thanks for bringing it to my attention so we can stop other people getting caught out too! I've made the split of example.php
now and updated the README too - if you spot anything else, feel free to do another pull request...
from codeigniter-paypal-ipn.
@alexanderdean thanks for the quick response. No worries, getting caught on this thing was my own doing as I rushed what I needed to do. If it wasn't for you guys I wouldn't even have had a library to utilize so I'm far better off! Thanks!
from codeigniter-paypal-ipn.
No worries - glad it's useful!
from codeigniter-paypal-ipn.
Related Issues (20)
- Paypal keeps informing me that IPN failed HOT 2
- Where it generates paypal button or form ? HOT 1
- Register on Packagist
- Items with Same Name Error HOT 3
- Stumped HOT 19
- Duplicate rows in database HOT 8
- Options from paypal price/option dropdown not being inserted to db. HOT 7
- Recurring Payments Profile HOT 1
- about recurring payment
- Adding product decsription
- Newline handling is broken
- Wrong readme instructions
- Receiver email (email) does not match merchant's
- Paypal
- Update Doctrine version with ActiveRecord version fixes/improvements
- Fix discount behaviour HOT 2
- Apply Clark's line-item option fixes to Doctrine version
- Re-license with more permissive license
- ipn_order_items not being inserted in sandbox mode HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeigniter-paypal-ipn.