evands/iap_validation — pull request #12 by jbweimar (2012-09-18 20:57:07+00:00)
Title: Hey

Hey,

This is my first ever pull request so I hope it works. It was very annoying to write this because I had adjusted in a not so nice way for my own app so I essentially rewrote it. I then put the new code back in my original project to test it once. It does work but I haven't done extensive testing with all different scenarios. Basically I made the following changes:

* You had a few "if (outError) *outError = error" lines where I replaced the first outError by error
* I moved "saveTransactionId" into the method where the network connection returns successfully.
* The transaction verifier restarts itself on a 21007 and then calls the sandbox server