title: How does a Magento Payment Method Module integrate with the site's back-end
body: <p>I found <a href="https://stackoverflow.com/questions/1360274/magento-payment-process-how-it-works-in-general">this related question</a> which confirmed a lot of what I already thought but one question remains; how does a custom payment module integrate with the store's database? </p>
  
  <p>I am developing a custom payment method that transfers the user to a secure site, hosted by a bank in Australia which will process credit card transactions. For this module, I'll need to pass information onto the bank's site and also get information back once the transaction is complete.</p>
  
  <p>Naturally, I don't want to have any database updates happening before the transaction is complete, so how do I configure my method to</p>
  
  <ol>
  <li>Stop the database from updating</li>
  <li>Update the database once the transaction confirmation is relayed back from the bank</li>
  </ol>