InAppPurchases : try both non sandbox and sandbox receipt validation

The official Apple recommendation is to validate the iOS receipt first with the non-sandbox url ( https://buy.itunes.apple.com/verifyReceipt ) and, if it returns an error code 21007, validate it with the sandbox url ( https://sandbox.itunes.apple.com/verifyReceipt ). Currently juce_ios_InAppPurchases.cpp checks only one of those (depending on JUCE_IN_APP_PURCHASES_USE_SANDBOX_ENVIRONMENT ) which is not very convenient.

Here is a quite minimal patch that changes it to try both:

https://bitbucket.org/jpommier/juce-stuff/src/master/inapppurchases_retry_if_sandbox.patch