[SOLVED] Need help with database transactions (checkout module)

jayhen

Joined: 2007-02-12
Posts: 159
Posted: Fri, 2007-03-16 15:55

Hi,
Some are aware I'm working on the checkout modules. To this end, I'm trying to enable the code that writes PayPal transactions to the database. For some reason they are not being written, I've checked everything that seems necessary to me and cannot see why they would not be written. No clues (that I can spot) in the debug output. I'm posting the .inc file and the corresponding debug output of the view here. I would really appreciate some pointers on where else to look for the problem.
It's the ppTransaction that isn't being written.
Jay

AttachmentSize
IPN.inc_.txt5.85 KB
view_debug.html20.88 KB
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2007-03-16 19:58

it only inserts a row into the entity table:

INSERT INTO g2_Entity (g_id, g_creationTimestamp, g_isLinkable, g_modificationTimestamp, g_serialNumber, g_entityType) VALUES (71571,1174059582,0,1174059582,1,'GalleryCheckoutPaypalIPN')

the only odd thing i see is:
$ppTransaction ->save();

there shouldn't be a space before the ->

also, it depends on your Entities.inc / Maps.inc files. they describe an entity / map and that's what GalleryStorage uses to determine what db tables need to be used.

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
jayhen

Joined: 2007-02-12
Posts: 159
Posted: Fri, 2007-03-16 21:50

Ah, that explains it, there's no Entities.inc file!
Thanks!

 
jayhen

Joined: 2007-02-12
Posts: 159
Posted: Sat, 2007-03-17 23:50

Deleted this comment, since I've realised that the server I'm using doesn't seem to have a good installation of gmake, which was stopping me from generating the Entities.inc file. Have since built a new virtual server and all is OK. Carrying on the tests tomorrow to see if it allows me to save PayPal transactions to the database.