1
我试图安装谷歌结帐我的网站上,现在在一个点上,谷歌向我发送的序列号,到我应该张贴的“OK”头, 后回复(这里http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Notification_API.html#responding_to_notifications一些细节)回复服务器到服务器的请求?
问题是,IDK的怎么回复,我想这一点:
{
header('HTTP/1.0 200 OK');
$post = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : file_get_contents("php://input");
$post = substr($post, 14);
$pr = @'<?xml version="1.0" encoding="UTF-8"?>
<notification-acknowledgment xmlns="http://checkout.google.com/schema/2" serial-number="' . $post . '" />';
echo $pr;
if (isset($post)) {
//Something with the DB..
}
收到此确认收到通知,谷歌将停止发布我相同的序列numebr请求后,但我一直对获取请求(从数据库中知道这一点),这意味着谷歌无法收到我的通知确认。
我在哪里>'?