Skip to content

Instantly share code, notes, and snippets.

View nonelse's full-sized avatar

Pedro Filipe nonelse

  • adjust GmbH
  • Germany
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