snsparrish / NachaLibPHP

PHP lib for creating NACHA files
41 stars 20 forks source link

Transcode #4

Closed hegemanjr closed 6 years ago

hegemanjr commented 9 years ago

On lines 66 and 86 the condition throws an error because it is blank by default.

I was able to fix this by using isset()

//if(!$paymentinfo['Transcode']){ // replaced with "isset" version, without it, it doesn't work if(!isset($paymentinfo['Transcode'])){

twistedbeholder commented 7 years ago

I have fixed the Transcode issue. There are corrections to both files. The original index works. I included a bit of code that includes the "customer files" so I could run it as a web page. I have also started work on a for to create the customer files. Depending on what system you are running this on it may create additional EOL events. in nacha.php change all "\r\n" to "\n" and possibly remove the "\r\n." from line 207 column 100.

nacha.txt companyfile.txt companyfilecreate.txt

snsparrish commented 6 years ago

Merged and resolved. Thanks for the pr