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請求後,但我一直對獲取請求(從數據庫中知道這一點),這意味着谷歌無法收到我的通知確認。
我在哪裏>'?