iOS7 – receipts not validating at sandbox – error 21002 (java.lang.IllegalArgumentException)

I’ve had this problem and looked everywhere, including on Apple’s development forums. Apple will give a couple of stock replies, and that’s it. I think it’s a bug on Apple’s side. Validation locally on the device will work, so try to convert to that. If you absolutely must use server side validation, only transactionReceipt seems … Read more

The request was aborted: Could not create SSL/TLS secure channel sandbox account

I just ran into this same problem in my testing environment as well (luckily my live payments are going through). I fixed it by changing: public PayPalAPI(string specialAccount = “”) { System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls; to public PayPalAPI(string specialAccount = “”) { System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; They disabled support for SSL3 a while ago: https://www.paypal.com/uk/webapps/mpp/ssl-security-update, specifically stating … Read more

UIImage Saving image with file name on the iPhone

Kenny, you had the answer! For illustration I always think code is more helpful. //I do this in the didFinishPickingImage:(UIImage *)img method NSData* imageData = UIImageJPEGRepresentation(img, 1.0); //save to the default 100Apple(Camera Roll) folder. [imageData writeToFile:@”/private/var/mobile/Media/DCIM/100APPLE/customImageFilename.jpg” atomically:NO];

How to create a lightweight C code sandbox?

Since the C standard is much too broad to be allowed, you would need to go the other way around: specify the minimum subset of C which you need, and try to implement that. Even ANSI C is already too complicated and allows unwanted behaviour. The aspect of C which is most problematic are the … Read more