Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. $transaction = App::getModel('mygateway/transaction');
  2. $transaction->setOrderId($order_id);
  3. $transaction->setTransactionId($transaction_id);
  4.  
  5. Mage::log('saving', null, 'mygateway.log', true);
  6. $transaction->save();
  7. Mage::log('saved', null, 'mygateway.log', true);
  8.  
  9. $transaction = App::getModel('mygateway/transaction');
  10. $transaction->setOrderId($order_id);
  11. $transaction->setTransactionId($transaction_id);
  12. try{
  13. $transaction->save();
  14. }
  15. catch(Exception $error){
  16. Mage::log($error->getMessage(), null, 'yourlogfile.log');
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement