I made a custom module and I'm trying to save data into the module table so I wrote this code :
$model = Mage::getModel("modulepackage/name");
$model->setPostCode("XXXXX");
...
$model->setCity();
$model->save();
Everything is working perfectly in some file of my website but as soon as I place this code in my payment module (the module is supposed to track the credit card failed) it doesn't work anymore (no error thrown by Magento) but the data is not in the table. Do you have any idea ?
Thanks a lot !