Skip to content

Instantly share code, notes, and snippets.

@TonnyXu
Created September 10, 2011 05:48
Show Gist options
  • Save TonnyXu/1207988 to your computer and use it in GitHub Desktop.
Save TonnyXu/1207988 to your computer and use it in GitHub Desktop.
IAP Verification server definition with version parameter
// APPSTORE is a macro defined in AppStore build configuration.
// You need to do it yourself. Xcode won't help
#ifdef APPSTORE
NSString * const verificationURL = @"http://www.yourserver.com/verify?usingSandbox=1&version=1.1";
#else
NSString * const verificationURL = @"http://www.yourserver.com/verify?usingSandbox=0%version=1.1";
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment