Skip to content

Instantly share code, notes, and snippets.

@athurg
Created June 15, 2013 07:23
Show Gist options
  • Save athurg/5787256 to your computer and use it in GitHub Desktop.
Save athurg/5787256 to your computer and use it in GitHub Desktop.
<?php
namespace Enveesoft\Utils;
class Alipay
{
public static function notifyVerify($partner, $notify_id)
{
$uri = 'https://mapi.alipay.com/gateway.do?service=notify_verify';
$uri .= '&partner='.$partner;
$uri .= '&notify_id='.$notify_id;
$ret = file_get_contents($uri);
return ($ret=='true');
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment