Skip to content

Instantly share code, notes, and snippets.

View iddqd3's full-sized avatar

Vladimir iddqd3

  • Extreme Developers
  • Russia
View GitHub Profile
function verify_app_store_in_app($receipt, $is_sandbox)
{
//$sandbox should be TRUE if you want to test against itunes sandbox servers
if ($is_sandbox)
$verify_host = "ssl://sandbox.itunes.apple.com";
else
$verify_host = "ssl://buy.itunes.apple.com";
$json='{"receipt-data" : "'.$receipt.'" }';
//opening socket to itunes
@iddqd3
iddqd3 / Server.py
Created February 4, 2013 08:01 — forked from jdkanani/Server.py
#!/usr/bin/env python
import os
from BaseHTTPServer import HTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
ROUTES = [
('/', '/var/www/doc-html')
]
class MyHandler(SimpleHTTPRequestHandler):