8 use Phinx\Migration\AbstractMigration;
16 protected $trusted_table =
"cutrustedmaster";
18 protected $trusted_default = [
19 'trustedid' =>
'IPAYBPS',
20 'trustedvendor' =>
'IPAY',
21 'trustedtype' =>
'BillPay',
26 'Default' =>
'HomeCU',
34 'workflowcorrelid' => [
37 'Message' =>
"do not leave empty, use question mark" 42 'Message' =>
"do not leave empty, use question mark" 46 'Default' =>
'homecukim',
47 'Message' =>
'if this value is left blank, IPAYBPS.i will default the credit union code.' 49 'institutionenvironment' => [
56 'Default' =>
'jxep-HOMECUiJXGateway@jhahosting.com',
57 'Message' =>
'username for HOMECU' 59 'consumerproduct' => [
61 'Default' =>
'HomeCU',
71 'Default' =>
'Bilpay',
72 'Message' =>
"Bilpay with one l." 80 'Default' =>
'fH!57$iEhB#1!w3Au6S#$d2Y9#Nj!Fs8g4C$Xz#7!R5k3$cUpM',
81 'Message' =>
"password for HOMECU" 85 'Default' =>
"https://jxappgtw.jhahosted.com/jxchange/2008/ServiceGateway/ServiceGateway.svc",
90 'Default' =>
"payeeprocess",
91 'Message' =>
"do not change" 100 'Default' =>
"https://KIMjxtest.jackhenry.com/jxchange/2008/ServiceGateway/ServiceGateway.svc",
109 'Default' =>
"Transfer=1&Recur=0&PayeeMaint=0&AccountMaint=0&Enroll=0" 113 'Default' =>
"iPayBPS",
123 'Default' =>
"http://schemas.xmlsoap.org/soap/envelope/",
126 'xmlnamespaceresp' => [
128 'Default' =>
"http://jackhenry.com/jxchange/TPG/2008",
134 'Message' =>
"JX App Version" 138 'Default' =>
"member",
139 'Message' =>
"Format: fieldname1(start char, length) | fieldname2(start char, length) | fieldname3(start char, length) Fields to choose: Suffix, micraccount, accounttype, member Example: member(1,2) | suffix | micraccount(1,6)" 144 'Message' =>
"Check if overrides allowed at CU" 149 'Message' =>
"cvs list, defaults to duplicate payment error code" 161 public function up() {
163 if ($this->hasTable($this->trusted_table)) {
165 $def = $this->trusted_default;
166 $sql =
"select * from {$this->trusted_table} where trustedid = '{$def['trustedid']}'";
168 # note appears that fetchRow always returns count of 1, even if no row is found. 169 # using fetchAll even though I expect max 1 record (trustedid is unique key) 171 $trusted_row = $this->fetchAll($sql);
173 if (count($trusted_row) > 0) {
174 $sql =
"update {$this->trusted_table} set trustedfields = E'" 175 . json_encode($def[
'trustedfields'])
176 .
"' where trustedid = '{$def['trustedid']}'";
178 echo
" updating {$def['trustedid']} trusted master\n";
183 $sql =
"insert into {$this->trusted_table} (trustedid, trustedvendor, trustedtype, hcuinterface, trustedfields)" 184 .
" values('{$def['trustedid']}', '{$def['trustedvendor']}', '{$def['trustedtype']}'," 185 .
" E'{$def['hcuinterface']}', E'" . json_encode($def[
'trustedfields']) .
"')";
187 echo
" inserting {$def['trustedid']} trusted master\n";