I have added paymentwall processor to my forum, based on the paypal class and everything has been working great for a week now, all of a sudden yesterday my transaction logs show successful but it never created the user upgrade record.
This worked fine until yesterday, and today it started working again and logging both transaction and upgrade record.
Here is my code:
Thanks for any help.
This worked fine until yesterday, and today it started working again and logging both transaction and upgrade record.
Here is my code:
Code:
//these are checked in validatePreConditions and are valid
//$this->_user['user_id']
//$this->_upgrade
public function processTransaction( )
{
switch ($this->_filtered['type'])
{
case 0://credit was earned
case 1://credit was paid
$this->_upgradeRecordId = $this->_upgradeModel->upgradeUser($this->_user['user_id'], $this->_upgrade);
return array('payment',"Success");
break;
case 2://Chargeback
if ($this->_upgradeRecord){
$this->_upgradeModel->downgradeUserUpgrade($this->_upgradeRecord);
return array('cancel',"ChargeBack");
}
break;
case 12://recurring billing cancelled!!
return array('cancel',"Recurring Payment Cancelled");
break;
}
return array('Info',"OK","N/A");
}
Thanks for any help.