Fixes from live

This commit is contained in:
Deon George
2014-05-20 21:49:52 +10:00
parent a329cc3179
commit cbd10347a5
12 changed files with 26 additions and 28 deletions

View File

@@ -86,7 +86,6 @@ abstract class Checkout_Plugin_Paypal extends Checkout_Plugin {
// Verify that the IPN is for us.
// @todo This should be in the DB.
if ($cno->data['business'] == ($this->test_mode ? $this->email_test : $this->email_prod)) {
switch ($cno->data['payment_status']) {
case 'Completed':
// Our cart items total.

View File

@@ -11,8 +11,8 @@
*/
class Model_Checkout extends ORM_OSB {
protected $_has_many = array(
'account'=>array('through'=>'account_billing','foreign_key'=>'checkout_id'),
'payment'=>array(),
'service'=>array('through'=>'account_billing','foreign_key'=>'checkout_id'),
);
protected $_sorting = array('name'=>'ASC');