You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* It checks if status is Paid or not in Transaction Table
97
+
*
98
+
* @return void
99
+
*/
100
+
publicfunctioninquireTagAsCompleted()
101
+
{
102
+
if ($this->_check==true) {
103
+
104
+
if ($this->return['status'] == 'paid') {
105
+
$this->formatReturnData('update');
106
+
} else {
107
+
$this->return = '1';
108
+
}
109
+
}
110
+
}
111
+
112
+
/**
113
+
* [checkRefNoTransactionExists description]
114
+
*
115
+
* @param varchar $refNo reference number
116
+
*
117
+
* @return void
118
+
*/
119
+
publicfunctioncheckRefNoTransactionExists($refNo)
120
+
{
121
+
$this->return = $this->_transactionObj->connection->fetchAssoc('SELECT f.status,f.control_number,f.remitting_amount,fc.firstName,fc.lastName,fc.middleName,fc.phone,fc.street FROM f1_transactions f JOIN f1_customer fc ON fc.id=f.beneficiary_id WHERE f.control_number = ?', array($refNo));
122
+
$state=count($this->return);
123
+
if ($state<2) {
124
+
$this->return = '4';
125
+
}
126
+
return ($state<2)?false:true;
127
+
}
128
+
129
+
/**
130
+
* Set return data to error code 5 for incorrect username and password
131
+
*
132
+
* @return void
133
+
*/
134
+
publicfunctiongetUnAuthorizedData()
135
+
{
136
+
$this->return ='5';
137
+
}
138
+
139
+
/**
140
+
* sets return variable to GCASH formated string according to $type
$this->return = $this->transactionObj->connection->fetchAssoc('SELECT c.name,f.status,f.control_number,f.remitting_amount,fc.firstName,fc.lastName,fc.middleName,fc.mobile,fc.street FROM f1_transactions f JOIN f1_customer fc ON fc.id=f.beneficiary_id JOIN f1_currencies c ON c.id=f.receiving_currency_id WHERE f.control_number = ?', array($refNo));
121
+
$this->return = $this->_transactionObj->connection->fetchAssoc('SELECT c.name,f.status,f.control_number,f.remitting_amount,fc.firstName,fc.lastName,fc.middleName,fc.mobile,fc.street FROM f1_transactions f JOIN f1_customer fc ON fc.id=f.beneficiary_id JOIN f1_currencies c ON c.id=f.receiving_currency_id WHERE f.control_number = ?', array($refNo));
0 commit comments