Leaguerunner & PayPal

Comments appreciated with error details please.

Some of you have been seeing some errors in Leaguerunner after using PayPal.  Blame Todd, that slacker can't write code to save his life.

But don't worry, you're still registered, you've still paid, and it's all good.  We'll add a couple tails to the Cat 'O Nine-Tails and get those bugs sorted out asap.  Techie stuff after the break...


No tech stuff yet, I'm still sorting out the issue.  It's got something to do with what PayPal is giving back to Leaguerunner.  Either I mis-read the PayPal docs or the PHP docs, cuz I think it's a timestamp thing.
More details as I get stuff figured out.

2011-12-04 - 11:32:36
It's an issue with the timestamps from what I can tell.  Smarty (The template engine) uses a different format string than MySQL does, which means the insert methods on the registration_payment objects are failing.  This causes Leaguerunner to miss the recording of the payment so the Registration stays 'Unpaid'.   I've changed the timestamp formats and added another level of debug logging, so hopefully that will clear things up.

Of course, PayPal provides it's IPN system to help out too.  IPN lets Leaguerunner gather payment information in the background and update registrations accordingly.  So if you've made it to the Paypal confirmation page (or have received an email from PayPal saying you've paid) then IPN will update Leaguerunner soon.  You're all good.

I'll take comments here if anyone has their error messages still.