Archive for the 'No Mans Land' Category
NetRegistry Merchant Gateway Result & Response Codes
After looking through the NetRegistry API Guide to intergrate their mechant gateway into a custom shopping cart I discovered that there was no mention of what the result codes or response codes meant.
So after a big of google searching I came across a list of both response codes and result codes. I’m posting them here for other people to use until NetRegistry updates their API pdf.
Result codes:
- result = 0 (declined)
- result = 1 (approved)
- result = -1 (error)
Response codes:
Edit: Some more codes that were sent from Net Registry:
St George - Summary Response Code Report
- A1 - Recursive Call
- A2 - General Failure
- A3 - Reserved
- A4 - Invalid Merchant
- A5 - Reserved
- A6 - Reserved
- A7 - Internal Buffer
- A8 - Reserved
- A9 - Reserved
- B1 - Reserved
- B2 - Unsupported Operation
- B3 - Client Offline
- B4 - Internal Buffer
- B5 - Invalid Amount
- B6 - Invalid Dialog
- B7 - Invalid TXNTYPE
- B8 - Invalid TXNREF
- B9 - Reserved
- BY - PinPad Busy
- D0 - Invalid AuthCode
- E2 - No Previous Txn
- N0 - CPAT Error
- N1 - Logon Success
- N2 - PPID Unknown
- N3 - Logon Failed
- PF - PINpad Offline
- T0 - PINpad Idle
- T5 - System Error
- T8 - Unable to process
- TB - Card not Valid
- TE - No Cash on Credit
- TF - Logon Required
- TG - System Error
- TH - Printer Error
- TI - Operator Timeout
- TJ - System Error
- TK - No Manual Entry
- TL - Signature Error
- TM - Operator
- TN - Declined
- TP - Cancelled
- TQ - Expired Card
- TR - System Error
- TS - System Error
- TT - System Error
- TU - SAF Pending
- TV - Reversal Pending
- TX - Unable to Process
- TY - Card Rejected
- TZ - Declined
- X0 - No Response
- X1 - Communications Error
- X2 - Communications Error
- X3 - Communications Error
- X4 - System Error
- X5 - Communications Error
- X6 - Invalid Terminal
- X7 - MAC Error
- XB - Message Error
- XC - Message Error
- XD - Card not Valid
- XF - Invalid Month
- XG - TXN not Supported
- Y0 - System Error
- Z0 - Modem Error
- Z1 - No Dial Tone
- Z2 - No Host Answer
- Z3 - Line Busy
- Z4 - No Host Number
- Z5 - Power Fail
- Z6 - No Carrier
- Z7 - Link Error
Hope this is of use to other developers.
Ben
No commentsOS X 10.5 Leopard + Sudo
Just for those of you that do actually read this blog….lmao…probably no one, but what the heck….
The new version of OS X - 10.5 (aka Leopard) - has some new security features. One of them you may not find anywhere documented, and it may drive you up the wall. For those of you out there that use the terminal and don’t have a password set for your admin account, the ’sudo’ command will NOT work!
The simple fix is to just give your admin account a password. I know you might not want to, but tough!
I spent hrs trying to work out what the hell I was doing wrong. And the idea of using the root account didn’t appeal to me. I shouldn’t have to. If you’re wondering why this happens, I would imagine it’d have something to do with reducing the risk of a piece of malware from gaining control of your computer. Nice thought Apple, but a tad annoying. Let me do the worrying about malware.
Anyway - hope that helped someone out there.
Ben
2 commentsGoogle Maps
I’m not sure how long it’s been the case, but Google Maps now allows me to do directions of my local area. I can’t do street names yet, but you can enter towns at least. And their is surprisingly good at finding really small roads.
I mapped out the last long ride I did, which was with my dad over christmas 2006. I was riding my Honda XR 250R, and dad was riding his Honda Transalp 650 V-twin.
No commentsWCC 4 part 1
Here’s my submission to the latest weekly cocoa app challenge. Just “part one” for now, part two to follow if I have time.
No commentsUm…I can’t think of a title
I found this great little program today while sifting throu the net. Basically it allows you to hit a hotkey and have a terminal window slide down from the top of the screen giving you access to the command line. It doesn’t matter what program you’re working in either. Great for testing things without having to have yet another window open. Hit the hotkey again and the window slides and fade back up out of the way.
No commentsInteresting Video
Just thought I’d post this link. I believe in the scientists work and invention. It’s long, but very interesting (at least for me).
http://jnaudin.free.fr/html/qmmv11.htm
No commentsMoving SVN repository to new server.
I had been working on a site for a client and had used a SVN repository setup on my local server. When the project was finally approved I had to move the SVN repository to the sites webserver. This makes it nicer for when I need to update the site for the client. Can revert back to any page at any time.
So this was the first time I had to move a repository to another server. Not as simple as just dragging the svn folder to the server unfortunately, but still rather simple once you know what to do. So this is what I did:
Step 1 I logged into my local server using ssh and used the ‘cd’ command to change to my repository directory:
oldserver [~]# cd svn/Step 2 I then used the svnadmin command to dump my repository to a single file:
oldserver [~/svn]# svnadmin dump myrepository > myrepos.dump
* Dumped revision 0.
* Dumped revision 1.
* Dumped revision 2.
…
* Dumped revision 25.
* Dumped revision 26.
Step 3 Then I used Transmit, my FTP program of choice, and logged in and downloaded the dump file i created. “myrepos.dump” in this case.
Step 4 Again using Transmit I logged into the sites webserver and copied the file into the root directory.
Step 5 Next step was to login to the sites webserver again using ssh and creating the new repository:
newserver [~]# svnadmin create ~/svn/myrepository
Step 6 Now the key step is to load the data from the dump file into the newly created repository:
newserver [~]# svnadmin load ~/svn/myrepository < myrepos.dump
That was it. Looks complicated, but its really quite simple. The idea is you dump the data, copy the dump file to the new server, create the new repository, load the copied dump file in, and that’s all.
If you get stuck, either comment below or use the guide that I used found at this url: SVN Repository Migration
Over and Out.
1 commentOld Sydney Signs
Old Sydney Signs was recently launched. I did all the coding (both front end and admin cp) as well as some of the design work.
1 commentSetting up an SVN repository on your host, using an SSH tunnel for comunication
After half a day of googling, reading tutorials, man pages, references, source code files, configuring my router, running shell commands, installing software on both ends, modifying various plain text config files, writing shell scripts, and usually having between 3 and 5 terminal windows open at all times, plus 7 to 10 tabs open in my browser, I finally managed to get an svn repository working to sync files between my development machine and the live server, without touching ftp!
Of course, one day I’m going to need to repeat all of the above, so I’m writing it down here. Fortunately for anyone wishing to repeat the task, most of the stuff I did wasn’t necessary in the end. Here’s what you need to do:
Step 1: Install svn on the client machine and the server. I used fink and FinkCommander to install the svn package on my mac (this is an easier way), and your host will probably need to do the installing on his end.
Step 2: Get host to enable ssh access on the server, my host is run by a mate of mine, so this was pretty easy. Your milage may vary.
Step 3: Configure ssh to use a non-standard port when connecting to the server. For security reasons, my host doesn’t use the default port 22 for ssh, so we need to tell ssh what port to use when connecting to this host. For that you need to add the following code to the end of ~/.ssh/config:
Host myhost.com
Port ###
As instructed in the man page for ssh_config.
Step 4: Unless you enjoy entering your password several times for each action you perform, you’ll need to set up rsa public key authentication for your account. This basically involves generating a public/private key, then copying the pubic key into a specific location on the server. I followed this tutorial to achieve that, however they rely on a the ssh-copy-id command, which doesn’t exist under MacOS X, so I had to modify this script to complete that section (note: that script doesn’t work out of the box with rsa authentication, It has to be slightly modified).
Step 4: Follow instructions in this if you don’t know how to use svn. When they talk about file or http url’s, you need to use this format instead “svn+ssh://username@hostname/home/username/repository/path”.
Step 5: There isn’t a step 5… Wow! A whole day to figure out 4 simple steps… reminds me why I’m glad I don’t have to deal with linux every day.
1 commentBypassing Internet Cafe Security
Sooooo…..here’s a little fun story… I’m in Uk still.. and was meant to go to Paris at 7pm but the train to the airport was cancelled and so we missed the plane. Unfortunately the next plane wasn’t gonig to leave til 10:40 am the next day. What the hell to do for the next 15 hrs??!!!
Well this is one thing you could do. There is an internet cafe in the airport with about 7 PCS running some custom software which is designed to make you pay first b4 you can surf the net….unless you’re me.
The dumb thing they did was have a few pages available for free to look at. Not smart. One link is info about the airport. Next found a link regarding accessibility of the site. Next is a link to W3C, the site that sets all the standards for websites and other internet based content. Then followed a link to their home page which had a google search box.
Bingo!!!
So now that I have a way to surf the net without paying £1 for 10 minutes
Anyway thats my little story for the moment. Might write more stuff later seeing as I still have 12 hrs to go.
Over and out
1 comment